root/LayoutTests/http/tests/cache/resources/iframe304.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
require_once '../../resources/portabilityLayer.php';

clearstatcache();

if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
    header("HTTP/1.0 304 Not Modified");
    exit();
}
$one_year = 12 * 31 * 24 * 60 * 60;
$last_modified = gmdate(DATE_RFC1123, time() - $one_year);
$expires = gmdate(DATE_RFC1123, time() + $one_year);

header('Cache-Control: no-cache, max-age=' . $one_year);
header('Expires: ' . $expires);
header('Content-Type: text/html');
header('Content-Length: 0');
header('Etag: 123456789');
header('Last-Modified: ' . $last_modified);
exit();
?>

/* [<][>][^][v][top][bottom][index][help] */