Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
601 B ยท 14 lines
TypeScript
123456789101112131415/** * Cache-Control for a markdown response. Only PUBLIC pages served via the `.md` * suffix are edge-cacheable; gated pages (password/email-domain/ip-restriction) * must always be `private, no-store` โ a `.md` suffix is not a license to cache * authorized content where the CDN could serve it to an unauthorized request. */export function markdownCacheControl( source: string | null, accessType: string | null | undefined,): string { return source === "suffix" && accessType === "public" ? "public, max-age=60, s-maxage=60, stale-while-revalidate=300" : "private, no-store";}