Try this never gives me a problem. I use it to keep proxy servers from
caching.
<?
header("HTTP/1.1 200 OK");
header("Status: 200 OK");
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-cache, must-revalidate"); //
HTTP/1.1
header("Pragma: no-cache");
// HTTP/1.0
?>
Yes but I want to unset an Expires: header and not give a any value.
1. PHP (I believe) is setting an Expires: header.
2. The Expires: header is causing the page to be cached too long,
Longer than the Last-Modified: header would allow.
3. Setting the Expires: header to garbage, eg: Expires: none causes
no caching to occur at all.
Let me reiterate, I want this page to get cached, but not based on an
Expires: header. Rather a Last-Modified header.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php