System Design · Junior · Question 12 of 75

What does the Cache-Control: max-age=3600 header specify?

Explanation

While the response is "fresh", the browser doesn't hit the network. After it expires, the browser can revalidate with a conditional request (ETag/Last-Modified) and get a 304. no-store forbids caching, and no-cache requires revalidation before every use.

Further reading

Problem with a question

System Design · Junior · question 12

Test yourself

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

Take this quiz