hsdrgmi Posted September 29, 2009 Share Posted September 29, 2009 which no cache headers do you use ? Link to comment https://forums.phpfreaks.com/topic/175999-no-cache/ Share on other sites More sharing options...
RussellReal Posted September 30, 2009 Share Posted September 30, 2009 straight from php.net this is what I use and has always been true <3 <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past ?> Link to comment https://forums.phpfreaks.com/topic/175999-no-cache/#findComment-927503 Share on other sites More sharing options...
hsdrgmi Posted October 1, 2009 Author Share Posted October 1, 2009 I've recently seen this: "In order to make Internet Explorer 6 (probably also 7) not to cache pages you should use only these headers: header("Cache-Control: no-cache"); header("Expires: -1"); as suggested by Microsoft itself [source: http://support.microsoft.com/kb/234067] " some people do seem to use header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1 header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header("Pragma: no-cache"); header("Expires: 0"); Link to comment https://forums.phpfreaks.com/topic/175999-no-cache/#findComment-928358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.