vrana           Tue Sep  6 11:03:48 2005 EDT

  Modified files:              
    /phpdoc/en/reference/http/functions header.xml 
  Log:
  Remove superfluous cache headers (bug #34223)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/http/functions/header.xml?r1=1.26&r2=1.27&ty=u
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.26 
phpdoc/en/reference/http/functions/header.xml:1.27
--- phpdoc/en/reference/http/functions/header.xml:1.26  Fri Sep  2 07:54:19 2005
+++ phpdoc/en/reference/http/functions/header.xml       Tue Sep  6 11:03:44 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.26 $ -->
+<!-- $Revision: 1.27 $ -->
 <!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
   <refentry id="function.header">
    <refnamediv>
@@ -134,18 +134,8 @@
       <programlisting role="php">
 <![CDATA[
 <?php
-// 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");
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
 ?>
 ]]>
       </programlisting>

Reply via email to