Skip to content

Commit 991d099

Browse files
authoredJul 21, 2022
fix(handleCacheHeaders): add max-age to the final object (#142)
1 parent 41db140 commit 991d099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/utils/cache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function handleCacheHeaders (event: CompatibilityEvent, opts: CacheCondit
1717
let cacheMatched = false
1818

1919
if (opts.maxAge !== undefined) {
20-
opts.cacheControls?.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`)
20+
cacheControls.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`)
2121
}
2222

2323
if (opts.modifiedTime) {

0 commit comments

Comments
 (0)
Please sign in to comment.