cvs: phpweb / docs.php
| From: | Derick Rethans | Date: | Wed, 15 May 2002 09:10:22 +0000 |
| Subject: | cvs: phpweb / docs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10229@lists.php.net to get a copy of this message | ||
derick Wed May 15 05:10:22 2002 EDT
Modified files:
/phpweb docs.php
Log:
- Test with If-Modified-Since headers.
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.114 phpweb/docs.php:1.115
--- phpweb/docs.php:1.114 Fri Apr 19 08:31:14 2002
+++ phpweb/docs.php Wed May 15 05:10:22 2002
@@ -1,4 +1,15 @@
<?php
+$ts = getlastmod();
+$tsstring = gmdate("D, d M Y H:i:s",$ts)." GMT";
+if ($tsstring != $HTTP_IF_MODIFIED_SINCE) {
+ header("Last-Modified: ".$tsstring);
+ /* output the page here */
+} else {
+ header("HTTP/1.1 304 Not Modified");
+ /* do nothing */
+ exit();
+}
+
require_once 'prepend.inc';
$SIDEBAR_DATA='
@@ -59,7 +70,7 @@
<p>
You can learn how to integrate our online manual with various tools, including
your web browser, on our <a href="tips.php">quick reference tips</a> page.
-You can also get more information about PHP.net URL shortcuts by visiting our
+You can also get more information about php.net URL shortcuts by visiting our
<a href="urlhowto.php">URL howto page</a>.
</p>