Symptoms:
Changes made to the website do not update for the end user until they manually refresh the page, if they have been to the website before
How to reproduce the issue:
Remove a period from a random sentence
Publish to Netlify
No build errors
Check live site
Period won’t be removed until manually refreshing the page
Nothing I do seems to solve the issue. When I make changes and push them to Netlify, the end user has to refresh their page in order to see those changes, if they have been to the site before.
I’m to the point now where I have tried all kinds of hacky things.
Created a header file AND a netlify.toml file, per the docs. Added no-cache rules. Didn’t work.
I even renamed the classes of the div I changed. Didn’t work. End user still has to refresh to see changes.
This is a simple React site with no backend. I don’t get it.
When I make changes to text in a paragraph, or a link to a pdf, for example. The expectation is, those changes would appear to the end user without the need for them to refresh, after browsing to the site.
As another example, imagine a news site where the end-user has to refresh the page every day after browsing to it, just to see updated content. Definitely not expected behavior.
Expected behavior would be, when I make a change and push it, the end user sees the most updated version of the website when they go to visit it, even if they have been there before, without having to f5 after initially landing.