Skip to content

Commit

Permalink
fix(handleCacheHeaders): add max-age to the final object (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnbin authored Jul 21, 2022
1 parent 41db140 commit 991d099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function handleCacheHeaders (event: CompatibilityEvent, opts: CacheCondit
let cacheMatched = false

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

if (opts.modifiedTime) {
Expand Down

0 comments on commit 991d099

Please sign in to comment.