aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/if_modified_since.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/if_modified_since.php')
-rw-r--r--test/data/if_modified_since.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/data/if_modified_since.php b/test/data/if_modified_since.php
deleted file mode 100644
index 098b7da85..000000000
--- a/test/data/if_modified_since.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-error_reporting(0);
-
-$ts = $_REQUEST['ts'];
-
-$ifModifiedSince = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE']) : false;
-if ($ifModifiedSince == $ts) {
- header('HTTP/1.0 304 Not Modified');
- die; // stop processing
-}
-
-header("Last-Modified: " . $ts);
-
-if ( $ifModifiedSince ) {
- echo "OK: " . $ts;
-} else {
- echo "FAIL";
-}
-
-?>