blob: d9abba49b07ad82cd2b31a2cc8d63f8f4bfdd68e [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
</script>
<script src="resources/cache-control-immutable.js"></script>
<body>
<div id=logdiv><div>
<script>
test(1000, (revalidated) => {
log("HTTP: Test if non-expired subresource with Cache-control: immutable is revalidated", true, revalidated);
test(0, (revalidated) => {
log("HTTP: Test if expired subresource with Cache-control: immutable is revalidated", true, revalidated);
if (window.testRunner)
testRunner.notifyDone();
});
});
</script>