API Design · Middle · Question 24 of 75
What does stale-while-revalidate allow?
- ✓Correct answer: Serving a slightly stale cached response immediately while fetching a fresh one in the background
- 2Serving errors from cache
- 3Disabling caching temporarily
Explanation
It hides revalidation latency from users. stale-if-error serves stale data when the origin fails.