request-cache-no-cache.any.js (821B)
1 // META: global=window,worker 2 // META: title=Request cache : no-cache 3 // META: script=/common/utils.js 4 // META: script=/common/get-host-info.sub.js 5 // META: script=request-cache.js 6 7 var tests = [ 8 { 9 name: 'RequestCache "no-cache" mode revalidates stale responses found in the cache', 10 state: "stale", 11 request_cache: ["default", "no-cache"], 12 expected_validation_headers: [false, true], 13 expected_no_cache_headers: [false, false], 14 expected_max_age_headers: [false, true], 15 }, 16 { 17 name: 'RequestCache "no-cache" mode revalidates fresh responses found in the cache', 18 state: "fresh", 19 request_cache: ["default", "no-cache"], 20 expected_validation_headers: [false, true], 21 expected_no_cache_headers: [false, false], 22 expected_max_age_headers: [false, true], 23 }, 24 ]; 25 run_tests(tests);