2009-06-15 15:36:12 +02:00
|
|
|
<?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);
|
2009-07-14 23:13:23 +02:00
|
|
|
|
|
|
|
if ( $ifModifiedSince ) {
|
|
|
|
echo "OK: " . $ts;
|
|
|
|
} else {
|
|
|
|
echo "FAIL";
|
|
|
|
}
|
2009-06-15 15:36:12 +02:00
|
|
|
|
|
|
|
?>
|