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
?>
Richard L. Buskirk
-----Original Message-----
From: Richard Heyes [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 7:55 AM
To: PHP General List
Subject: [PHP] Unsetting a header
Does anyone know of a way to unset a header? I have an Expires: header
that I believe Apache is setting, and I don't want it. Thanks.
--
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php