System Design · Middle · Question 10 of 75

What does Cache-Control: max-age=60, stale-while-revalidate=600 do?

Explanation

The user almost always gets an instant response from cache, while freshness is maintained by background revalidation. The same strategy underlies SWR, TanStack Query and ISR in Next.js.

Further reading

Problem with a question

System Design · Middle · question 10

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz