blob: d30ed16269686ae7163853a795d529fb4d869b41 [file] [log] [blame]
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Request cache : no-cache</title>
<meta name="help" href="https://fetch.spec.whatwg.org/#request">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="request-cache.js"></script>
</head>
<body>
<script>
var tests = [
{
name: 'RequestCache "no-cache" mode revalidates stale responses found in the cache',
state: "stale",
request_cache: ["default", "no-cache"],
expected_validation_headers: [false, true],
expected_no_cache_headers: [false, false],
expected_max_age_headers: [false, true],
},
{
name: 'RequestCache "no-cache" mode revalidates fresh responses found in the cache',
state: "fresh",
request_cache: ["default", "no-cache"],
expected_validation_headers: [false, true],
expected_no_cache_headers: [false, false],
expected_max_age_headers: [false, true],
},
];
run_tests(tests);
</script>
</body>
</html>