longer cache
This commit is contained in:
@@ -20,8 +20,8 @@ function acceptsGzip(req: Request): boolean {
|
|||||||
return (req.headers.get("accept-encoding") ?? "").includes("gzip");
|
return (req.headers.get("accept-encoding") ?? "").includes("gzip");
|
||||||
}
|
}
|
||||||
|
|
||||||
const STATIC_ASSET_CACHE = "public, max-age=3600, stale-while-revalidate=86400";
|
const STATIC_ASSET_CACHE = "public, max-age=86400, stale-while-revalidate=604800";
|
||||||
const MUTABLE_ASSET_CACHE = "public, max-age=60, stale-while-revalidate=300";
|
const MUTABLE_ASSET_CACHE = "public, max-age=3600, stale-while-revalidate=86400";
|
||||||
const NO_CACHE = "no-cache";
|
const NO_CACHE = "no-cache";
|
||||||
|
|
||||||
function assetCacheControl(relativePath: string): string {
|
function assetCacheControl(relativePath: string): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user