We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
max-age
1 parent 41db140 commit 991d099Copy full SHA for 991d099
src/utils/cache.ts
@@ -17,7 +17,7 @@ export function handleCacheHeaders (event: CompatibilityEvent, opts: CacheCondit
17
let cacheMatched = false
18
19
if (opts.maxAge !== undefined) {
20
- opts.cacheControls?.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`)
+ cacheControls.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`)
21
}
22
23
if (opts.modifiedTime) {
0 commit comments