#31868 [NEW]: no-cache does work

From: Date: Mon, 07 Feb 2005 06:31:02 +0000
Subject: #31868 [NEW]: no-cache does work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73584@lists.php.net to get a copy of this message
From: dwmcq at msn dot com Operating system: win 2003 PHP version: 5.0.3 PHP Bug Type: IIS related Bug description: no-cache does work 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 bug report at http://bugs.php.net/?id=31868&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31868&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31868&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31868&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31868&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31868&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31868&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31868&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31868&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31868&r=support Expected behavior: http://bugs.php.net/fix.php?id=31868&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31868&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31868&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31868&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31868&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31868&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31868&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31868&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31868&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31868&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31868&r=mysqlcfg

« previous php.bugs (#73584) next »