Sha256: 19620ec9e4e7c370f1072d9cb3b64512f7e4657578697dbbd334b4299f489f3f
Contents?: true
Size: 378 Bytes
Versions: 12
Compression:
Stored size: 378 Bytes
Contents
<?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"; } ?>
Version data entries
12 entries across 12 versions & 2 rubygems