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]>
This commit is contained in:
1 parent
216c537ce7
commit
eff0aaa366
12 files changed
+192
-6
No files matched your search
@@ -70,7 +70,7 @@ Alinhados à descrição do projecto no Paperclip e ao [`docs/architecture.md`](
|
||||
|
||||
| Issue | Título (resumo) | Estado | Relação |
|
||||
|-------|-----------------|--------|---------|
|
||||
| [BIT-2030](/BIT/issues/BIT-2030) | [Governance] Docs vs objectives sweep — cli-news-platform | `in_progress` | **Pai (actual)** — sweep 2026-04 |
|
||||
| [BIT-2030](/BIT/issues/BIT-2030) | [Governance] Docs vs objectives sweep — cli-news-platform | `done` | **Pai (actual)** — sweep 2026-04 |
|
||||
| [BIT-2078](/BIT/issues/BIT-2078) | Add docs/PROJECT_STATUS.md — objectives vs delivery matrix | `todo` | **Filho** — este ficheiro |
|
||||
| [BIT-2079](/BIT/issues/BIT-2079) | Automate andebol.net writer pipeline — systemd timer on LXC | `todo` | **Filho** — automação do pipeline de escrita |
|
||||
| [BIT-2080](/BIT/issues/BIT-2080) | Core Web Vitals audit — verify TTFB/LCP/Lighthouse targets | `todo` | **Filho** — auditoria de performance vs spec |
|
||||
|
||||
Reference in new issue
Block a user