# 404 error with my Prismic CDN

**URL:** <https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569>\
**Category:** Developing with Prismic\
**Tags:** rest-api\
**Created:** [January 14, 2021, 10:25pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569 "2021-01-14T22:25:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![taker.wu](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@taker.wu](https://community.prismic.io/u/taker.wu)\
**Post date:** [January 14, 2021, 10:25pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/1 "2021-01-14T22:25:07Z")

</div>

I googled and found a topic that it's about preview session.  
Before today, I just go back to Prismic and press preview and it will work again.  
But now it doesn't work, all pages 404.

The topic I found recommend to clear the cookie, but it's annoying. Clear cookie affect a lot of my logged in websites, it should be solve in other ways. If I use Prismic everyday, I have to clear my cookie everyday, really annoying...

Do we have other solution?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [January 15, 2021, 1:20pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/3 "2021-01-15T13:20:20Z")

</div>

Hello @taker.wu,

Thanks for reaching out to us.

I understand your concern, but you can clear only one cookie(io.prismic.preview) without touching your browser's other cookies(where you are logged in or so).

Here is the process for clearing the "io.prismic.preview" cookie from google chrome:

On your website, open Dev Tools(right-click on the page and click on inspect), then in Dev tools, go to the "Application" tab and click "Cookies" in the side menu. Click on the domain ( your production domain), and scroll to find any domains that include io.prismic.preview. Delete all of those.

Finally, refresh everything and try opening a preview from the writing room again.

Currently, we recommend this solution to clearing cookies when "Preview" fails to work again.

Let me know if you have any other doubts.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [January 20, 2021, 10:23am UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/4 "2021-01-20T10:23:24Z")

</div>

closed on January 20, 2021, 10:23am UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:46pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/5 "2021-12-09T16:46:14Z")

</div>

Opened on December 9, 2021, 4:46pm UTC



---

<div class="post-metadata">

**Author:** ![megha.rana](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@megha.rana](https://community.prismic.io/u/megha.rana)\
**Post date:** [August 3, 2022, 4:29am UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/6 "2022-08-03T04:29:17Z")

</div>

Hello ! Stuck with the same issue. I am working on a Ruby Project and the code was working on my local. Out of nowhere it is now throwing 404 from yesterday and Net::ReadTimeout with #TCPSocket:(closed). Need help !!

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 10, 2022, 3:17pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/7 "2022-08-10T15:17:59Z")

</div>

Hi Megha,

I'm sorry about the late reply on this one.

Are you still seeing this issue? Did you try clearing your cookies?

Thanks.

---

<div class="post-metadata">

**Author:** ![megha.rana](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@megha.rana](https://community.prismic.io/u/megha.rana)\
**Post date:** [August 18, 2022, 6:03am UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/9 "2022-08-18T06:03:05Z")

</div>

Hello Phil,

I did clear my cookies but that did not work. Eventually I created another repo as we were creating a demo.

Also, right now we are extracting html content in Ruby directly in our views as below  
`<h1><%#= @documents[0]['privacy_policy.page_title'].as_text() %></h1>`

Is there a better way where we can get the content more dynamically ? The document doesn't mention this and will be really helpful to have more information on ruby code.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 18, 2022, 1:29pm UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/10 "2022-08-18T13:29:02Z")

</div>

Hey @megha.rana ,

Yes, you can output the content as HTML instead of `as_text` which removes styling.

> <https://github.com/prismicio-community/ruby-kit/blob/3abbb099c4337fe5741d1ce3aa15d2410f4afda2/docs-usage/03-templating/14-rich-text-title.md#output-as-html>

Thanks.

---

<div class="post-metadata">

**Author:** ![megha.rana](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@megha.rana](https://community.prismic.io/u/megha.rana)\
**Post date:** [September 9, 2022, 7:23am UTC](https://community.prismic.io/t/404-error-with-my-prismic-cdn/3569/11 "2022-09-09T07:23:41Z")

</div>

Thank you, using the HTML Serializer it worked !
