Browser & Web Performance · Middle · Question 39 of 75
What does Cache-Control: max-age=60, stale-while-revalidate=600 allow?
- ✓Correct answer: Fresh for 60 s; for the next 600 s a stale copy may be served immediately while it's revalidated in the background
- 2The browser revalidates every 60 s and blocks until the server answers
- 3The response is cached for 660 s and never revalidated
Explanation
Users get an instant response and the cache updates for the next request. It's a trade-off between freshness and speed.