Seeing most version of homepage requires browser refresh

Hi,

After I make changes to my site, the homepage (built with Cornerstone) appears to be cached somewhere, so that visitors to the site need to refresh their browsers in order to see the latest version of the homepage. This is a problem because the site content is time sensitive and most visitors would not know they need to refresh their browsers. I’ve tried clearing all caches after every content update, putting Cloudfare into development mode, disabling the Siteground Optimizer (and its cache functions), and excluding the homepage from the SG optimizer cache. This problem does not appear to occur on other pages (like category pages and individual posts), just the homepage. Some of the content on the homepage is made with Essential Grid, which has its own cache, but this function is not activated. Plus, the problem occurs even when I make changes to Cornerstone elements themselves. Do you have any suggestions about how to get browsers to load the most recent version of the site without needing to refresh the browser cache? The site is upstatefilms.org.

Hello Steve,

Thanks for writing in! All of the browsers will cache the page. This is why even if you have cleared all the caches in your site, the browser still needs to have the cache cleared. You will need to force the browser to refresh in order to display the most recent changes in your homepage. You may need to install a 3rd party plugin to do that. Perhaps this link might help you:

Best Regards.

Hi,

Thanks for your reply. I was able to solve this problem thanks to Siteground’s support, so if anyone else is having the same issue, here’s the fix that worked for me. They had me add this to the htaccess file (hopefully it won’t cause any side-effect problems):

DISABLE BROWSER CACHE

Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 #End Disable Browser cache

The browser cache settings are discussed here:

https://www.imperva.com/learn/performance/cache-control/

Hello Steve,

It’s good to know that you were able to resolve your issue.
Thank you for sharing this information. This is very useful for other users using SiteGround too.

Best Regards.

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