Fix cache duration
Build / build (push) Successful in 55s
Lint / lint (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2026-05-19 19:51:35 +02:00
parent 82904cf000
commit 440e23b80e
+1 -1
View File
@@ -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`,
) )
})) }))
}) })