cache-headers.ts
This file
Path
apps/web/src/server/cache-headers.ts
10 lines · 476 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
History of this fileTake it
1234567891011// No `s-maxage`: a shared cache that honours it stops serving stale while it asks.// Workers Cache keys by path and query, never by cookie, so a page that gives `branchPage` must read as nobody.
export const branchPage = { "Cache-Control": "public, max-age=30, stale-while-revalidate=300",} as const satisfies Readonly<Record<string, string>>;
export const personalPage = { "Cache-Control": "private, no-store",} as const satisfies Readonly<Record<string, string>>;