API Design · Middle · Question 23 of 75
What's the difference between no-cache and no-store?
- 1
no-storeallows caching for one minute - 2They are identical
- ✓Correct answer:
no-cacheallows storing but requires revalidation before each use;no-storeforbids storing at all
Explanation
Despite its name, no-cache works well with ETags: the client asks, and the server can reply 304.