RE: [PHP] Internet Explorer Caching
| From: | Daevid Vincent | Date: | Thu, 30 Aug 2007 20:59:30 +0000 |
| Subject: | RE: [PHP] Internet Explorer Caching | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261549@lists.php.net to get a copy of this message | ||
Here are some cache things we do for IE...
// workaround for IE bug that prevents downloading files from an httpS site
// (see http://support.microsoft.com/default.aspx?scid=kb;en-us;316431
)
session_cache_limiter('public');
// This ensures that most browsers known to human beings won't try to cache
the page.
// Proxy caching is, I believe, somewhat addressed by the cache-control, but
// additional directives exist should that ever become a concern.
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
always
modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0