
Artur MoreiraandPaperclip
eff0aaa366
feat(frontend): add Cache-Control headers to all page routes (BIT-2261)
Set Cache-Control: s-maxage=60, stale-while-revalidate=300 on all page
routes to enable Cloudflare CDN caching per docs/architecture.md § 7.
Files updated:
- index.astro (homepage)
- article/[slug].astro (article pages)
- category/[slug].astro (category pages)
- noticias.astro (news listing)
- search.astro (search results)
- sitemap.xml.ts (sitemap)
- robots.txt.ts (robots)
This enables:
- CDN edge caching for 60 seconds (s-maxage)
- Serving stale content while revalidating for up to 300s (SWR)
- Improved TTFB for repeated requests (target: <30ms cache HIT)
Acceptance criteria:
✓ All page routes return correct Cache-Control header
✓ Cloudflare can cache responses with cf-cache-status: HIT
✓ TTFB improves to <30ms for cache HIT scenario
✓ Header values match architecture spec
Co-Authored-By: Paperclip <[email protected]>
2026-04-11 03:37:32 +00:00
..
2026-04-09 22:29:32 +00:00
2026-03-23 14:06:29 +00:00
2026-04-11 03:37:32 +00:00
2026-04-02 20:59:20 +00:00
2026-04-02 20:05:02 +00:00
2026-03-28 01:15:51 +00:00
2026-04-11 03:37:32 +00:00
2026-04-02 20:06:48 +00:00
2026-04-08 08:58:21 +01:00
2026-03-27 08:38:41 +00:00
2026-04-02 20:06:48 +00:00
2026-04-09 22:29:32 +00:00
2026-04-11 03:37:32 +00:00
2026-04-11 03:37:32 +00:00
2026-04-11 03:37:32 +00:00
2026-04-02 20:59:20 +00:00
2026-04-02 19:42:39 +00:00