Skip to main content
InterviewHubPRO
Section Overview
Q29

Question 29 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

58%
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.