Discussion: Unsetting a header
Afficher un message
Vieux 21/10/2007, 20h20   #4
admin@buskirkgraphics.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] Unsetting a header

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@phpguru.org]
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 Desk 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
  Réponse avec citation
 
Page generated in 0,07326 seconds with 9 queries