0

A couple of months back, I tested out the Wordpress automatic optimization feature in Cloudflare and started to get complaints from readers that our home page was no longer updating. I think the issue may have happened because I had my Cloudflare caching set to 6 months for images, css, and js files at the time that I activated the Wordpress optimization feature, and I suspect it sent a 6 month expires time for HTML at that time too.

I deactivated the feature after a week or so but I believe that it set a far-future expires header on our home page that is causing some of our users to still be seeing a very old version of our content unless they clear their local cache.

Does anyone know if there's a way to force browsers to grab a new version of the page automatically from the server side, or am I stuck waiting for the expires time to run out?

I already changed my cache time to 2 hours at Cloudflare and also only have caching active on CSS, JS, and Image files so HTML is no longer being cached by Cloudflare.

technabob
  • 1
  • 1
  • This gets asked here pretty often, though I don't have time to find a good duplicate at the moment. The short answer, unfortunately, is no, you can't force the browser not to use the cached home page. – Kevin Christopher Henry Nov 17 '22 at 14:52

0 Answers0