RE: Unsetting a header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:richardh@xxxxxxxxxxx] 
Sent: Sunday, October 21, 2007 7:55 AM
To: PHP General List
Subject:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux