mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
b7ece8c620
This reverts commit 228ab3ddae
.
21 lines
378 B
PHP
21 lines
378 B
PHP
<?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";
|
|
}
|
|
|
|
?>
|