php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31868 no-cache does work
Submitted: 2005-02-07 07:31 UTC Modified: 2005-02-07 08:16 UTC
From: dwmcq at msn dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.0.3 OS: win 2003
Private report: No CVE-ID: None
 [2005-02-07 07:31 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-07 08:16 UTC] derick@php.net
Blame microsoft.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 21:01:31 2024 UTC