Browser displays cached version of page
-
I have a number of pages that use PHP snippets (all are “private” so can’t give you a link). Recently (probably started a few months back but I can’t pinpoint a date) I noticed that in the morning when I first view these pages, my browser (both Firefox and Chrome) displays an old cached version of the page. It is clearly out of date and the PHP snippet is not being run. I can fix this manually by clicking on the “refresh” button (<F5>) then an up-to-date version of the page is displayed. While this is a workaround, it is not a solution since my clients won’t realise that they need to click on “refresh” to see the correct version.
I have tried my best to turn off caching on the page but the browser is ignoring my header tags of
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" />
I have tried using a Caching plugin (SG Optimizer) that provides an “exclude” feature and I’ve nominated the pages in question to be “excluded” but that hasn’t worked either. I’m pulling my hair out! Any ideas would be appreciated.
- The topic ‘Browser displays cached version of page’ is closed to new replies.