System Design · Junior · Question 12 of 75
What does the Cache-Control: max-age=3600 header specify?
- ✓Correct answer: The response can be used from the cache for an hour without contacting the server
- 2The server must respond to the request within an hour
- 3The browser must delete all site data after an hour
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.