Edge caching and CDN headers for public pages and media (/m/*)
FeatureShipped· by Elsama· 2 months ago
Context: Public pages (board, roadmap, changelog, docs) render with full SSR and no revalidation; the media resolver /m/* has no documented cache or CDN strategy.
Scope:
- Add ISR/revalidate to public pages with tag-based invalidation on writes.
- Set long-lived cache-control plus immutable on /m/* responses and front with Cloudflare.
- Ensure authed and admin pages stay uncached.
Done when: anonymous public pages and media are served largely from cache/edge, cutting origin load during spikes.
Comments (1)
- Elsama· 2 months ago
PR ready for review: https://github.com/El-SaMa/hollahoop/pull/49
Route cache classification, Cache-Control defaults in proxy.ts, docs/EDGE_CACHING.md. Anonymous public pages cached at edge; auth/app/api/mcp stay no-store. No migration needed.
Verified: 513 vitest passed, build, tsc, eslint.
Join the discussion
Sign in to leave a comment on this thread.