Fix cache duration
This commit is contained in:
@@ -32,7 +32,7 @@ const makeProductionWebappRoute = Effect.fnUntraced(function*(route: HttpRouter.
|
|||||||
return yield* HttpServerResponse.setHeader(
|
return yield* HttpServerResponse.setHeader(
|
||||||
yield* HttpServerResponse.file(exists ? source : path.join(dist, "index.html")),
|
yield* HttpServerResponse.file(exists ? source : path.join(dist, "index.html")),
|
||||||
"Cache-Control",
|
"Cache-Control",
|
||||||
`public, max-age=${Duration.toSeconds("365 days")}, immutable`,
|
`public, max-age=${Duration.toSeconds("6 hours")}, immutable`,
|
||||||
)
|
)
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user