|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-07 08:16 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 00:00:01 2025 UTC |
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> </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