blob: 7bdd660717ba6596f9b8253ccaae4f13c18ca62c [file] [log] [blame]
<script src="/js-test-resources/js-test-pre.js"></script>
<script src="resources/cache-test.js"></script>
<body>
<script>
var tests =
[
{ responseHeaders: {'Status': '204', 'Cache-control': 'max-age=0' }, includeBody: false },
{ responseHeaders: {'Status': '204', 'Cache-control': 'max-age=100' }, includeBody: false },
{ responseHeaders: {'Status': '204', 'Last-Modified': 'now(-1000)' }, includeBody: false }, // Heuristic freshness.
];
description("Test that responses with HTTP status code 204 are cacheable");
debug("running " + tests.length + " tests");
debug("");
runTests(tests);
</script>
<script src="/js-test-resources/js-test-post.js"></script>