API Design · Junior · Question 45 of 75
Which responses can HTTP caches store most safely?
- 1Any response with a cookie
- 2Responses to POST requests
- ✓Correct answer: Responses to GET requests with explicit cache headers like
Cache-Control: max-age=60
Explanation
Personalized responses need Cache-Control: private or no-store so shared caches don't serve them to other users.