note 42203 added to function.header

From: Date: Fri, 07 May 2004 14:51:04 +0000
Subject: note 42203 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-69314@lists.php.net to get a copy of this message
ie6 caching problems on xp if you use your headers in this order then you may get caching problems: // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");  // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-cache"); put your cache control headers first then the date headers like so:  // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-cache"); // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42203 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42203&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42203&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69314) next »