Gatsby Site Requiring Hard Refresh to See New Posts #35262
-
This issue has already been brought up and in most cases seems to involve gatsby-plugin-offline. I am NOT using gatsby-plugin-offline and I still have this problem. Whenever I push to the remote, my live site will update all changes I make except new blog posts, supposedly due to graphql not querying another time. But during production on my localhost it updates instantly. I find it confusing to read all the different cases of this error, for instance in this thread it says that you SHOULD use gatsby-plugin-offline to solve the issue. It shows how to create a popup whenever the site needs to refresh. Is there really no other way? Is it not possible to simply have a Gatsby site work like a normal website, automatically showing the latest blog posts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You'll need to make sure that your caching is set up correctly: https://www.gatsbyjs.com/docs/caching/ |
Beta Was this translation helpful? Give feedback.
-
I deployed on build on digital ocean, facing this issue, on HARD REFRESH new data shows, but for some users, it keeps showing older data. |
Beta Was this translation helpful? Give feedback.
You'll need to make sure that your caching is set up correctly: https://www.gatsbyjs.com/docs/caching/
Gatsby sites don't require a hard refresh when updates are pushed.