[Cocoa] Treat Epoch as invalid value for "Last-Modified" header
[WebKit-https.git] / LayoutTests / http / tests / cache / disk-cache / disk-cache-last-modified.html
1 <script src="/js-test-resources/js-test-pre.js"></script>
2 <script src="resources/cache-test.js"></script>
3 <body>
4 <script>
5
6 var tests =
7 [
8  { responseHeaders: {'Last-Modified': 'Thu, 01 Jan 2000 00:00:00 GMT' } }, // Heuristic freshness.
9  { responseHeaders: {'Last-Modified': 'Thu, 01 Jan 1970 00:00:00 GMT' } }, // Epoch.
10  { responseHeaders: {'Last-Modified': 'invalid' } }, // Invalid date
11 ];
12
13 description("Covers uses of 'Last-Modified' header to compute heuristic freshness.");
14
15 debug("running " + tests.length + " tests");
16 debug("");
17
18 runTests(tests);
19
20 </script>
21 <script src="/js-test-resources/js-test-post.js"></script>