blob: e2a557a64c12a6006a8db66c0d0584c644574624 [file] [log] [blame]
<script src="/js-test-resources/js-test-pre.js"></script>
<script src="resources/cache-test.js"></script>
<body>
<script>
var testMatrix =
[
[
{},
{ responseHeaders: {'Cache-control': 'max-age=0' } },
{ responseHeaders: {'Cache-control': 'max-age=100' } },
],
[
{},
{ responseHeaders: {'Cache-control': 'no-store' } },
{ responseHeaders: {'Cache-control': 'no-cache' } },
],
[
{},
{ responseHeaders: {'ETag': 'match' } },
{ responseHeaders: {'ETag': 'nomatch' } },
],
[
{ responseHeaders: {'Vary': 'Accept-Language' }, requestHeaders: { 'Accept-Language': 'en' } },
{ responseHeaders: {'Vary': 'Accept-Language' }, requestHeaders: { 'Accept-Language': 'unique()' } },
],
];
description("Test permutations of various cache headers");
var tests = generateTests(testMatrix, false /* includeBody */);
debug("running " + tests.length + " tests");
debug("");
runTests(tests);
</script>
<script src="/js-test-resources/js-test-post.js"></script>