#31868 [Opn->Bgs]: no-cache does work

From: Date: Mon, 07 Feb 2005 07:16:24 +0000
Subject: #31868 [Opn->Bgs]: no-cache does work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73586@lists.php.net to get a copy of this message
ID: 31868 Updated by: derick@php.net Reported By: dwmcq at msn dot com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: win 2003 PHP Version: 5.0.3 New Comment: Blame microsoft. Previous Comments: ------------------------------------------------------------------------ [2005-02-07 07:31:01] dwmcq at msn dot com Description: ------------ The source below works on win 2000 iis 4 Does not work on win 2003 iis 6 Reproduce code: --------------- ob_start(); header("Cache-Control: private"); 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"); header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <script type='text/javascript' src='test_js_php1.php'></script> </HEAD> <BODY> <?php print gmdate("D, d M Y H:i:s"); ?> <P>&nbsp;</P> Test 1224444 </BODY> </HTML> <?PHP ob_end_flush(); ?> Expected result: ---------------- page not cached from win 2003 iis6 Actual result: -------------- page is cached from win2003 with iis6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31868&edit=1

« previous php.bugs (#73586) next »