aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/ajax/headers/cache/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/ajax/headers/cache/index.php')
-rw-r--r--test/data/ajax/headers/cache/index.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/data/ajax/headers/cache/index.php b/test/data/ajax/headers/cache/index.php
deleted file mode 100644
index c52b665bd..000000000
--- a/test/data/ajax/headers/cache/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-$headers = array(
-
- "If-Modified-Since" => array(
- "request" => "HTTP_IF_MODIFIED_SINCE",
- "response" => "Last-Modified",
- ),
- "If-None-Match" => array(
- "request" => "HTTP_IF_NONE_MATCH",
- "response" => "Etag",
- ),
-
-);
-
-$header = $_REQUEST["header"];
-$value = $_REQUEST["value"];
-
-if ( $header === "If-None-Match" ) {
- $value = md5( $value );
-}
-
-$headers = $headers[ $header ];
-
-$requestHeader = isset( $_SERVER[ $headers["request"] ] ) ? stripslashes($_SERVER[ $headers["request"] ]) : false;
-if ( $requestHeader === $value ) {
- header("HTTP/1.0 304 Not Modified");
-} else {
- header("$headers[response]: $value");
- echo $requestHeader ? "OK: $value": "FAIL";
-}