- Joined
- Jul 8, 2005
- Messages
- 17,131
- Likes received
- 4,950
- Thanks received
- 1,184
- Location
- xoggoth towers
Are you doing a hard refresh? Ctrl and refresh or Alt F5?Does anyone else find, after modifying a webpage, you press refresh in Chrome and nowt happens? Only way to see new version is to clear browsing data, close and open again. Got no-cache etc. in all the headers.
Bothers me that some users will never see the latest page.
There is a way to prevent this. IIRC you rename the files on the server each new version in some automated way and then the browser grabs the new files.
I'm passing on what a web-dev discussed with me so I could have this all wrong.
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>