Astro Islands & SSR (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
High-Performance Caching in Astro SSR.
senior LevelMost AskedCode ExampleFormsPerformanceSSR & Hydration
In Simple Words: In Astro frontmatter:
astro
---
Astro.response.headers.set(
'Cache-Control',
'public, max-age=60, s-maxage=3600, stale-while-revalidate=86400'
);
---
Edge CDNs serve cached pages instantly while revalidating in the background.