We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea901d commit 3c9413cCopy full SHA for 3c9413c
tests/cc-freshness.mjs
@@ -40,6 +40,25 @@ export default
40
}
41
]
42
},
43
+ {
44
+ name: 'HTTP cache must not reuse a response with `Cache-Control: max-age` after it becomes stale',
45
+ id: 'freshness-max-age-stale',
46
+ kind: 'optimal',
47
+ depends_on: ['freshness-max-age'],
48
+ spec_anchors: ['cache-response-directive.max-age'],
49
+ requests: [
50
51
+ response_headers: [
52
+ ['Cache-Control', 'max-age=2']
53
+ ],
54
+ setup: true,
55
+ pause_after: true
56
+ },
57
58
+ expected_type: 'not_cached'
59
+ }
60
+ ]
61
62
{
63
name: 'HTTP cache must not reuse a response with `Cache-Control: max-age=0`',
64
id: 'freshness-max-age-0',
0 commit comments