Bird
0
0

What behavior does the Cache-Control: no-store directive enforce on HTTP caches?

medium📝 Predict Output Q5 of 15
Rest API - Caching Strategies
What behavior does the Cache-Control: no-store directive enforce on HTTP caches?
AIt prevents any storage of the response by browsers and intermediate caches.
BIt allows caching but requires revalidation before use.
CIt permits caching only in private caches like browsers.
DIt caches the response indefinitely without expiration.
Step-by-Step Solution
Solution:
  1. Step 1: Understand no-store

    This directive instructs caches not to store any part of the response.
  2. Step 2: Differentiate from other directives

    Unlike no-cache which allows storage but requires revalidation, no-store forbids storage entirely.
  3. Final Answer:

    It prevents any storage of the response by browsers and intermediate caches. -> Option A
  4. Quick Check:

    Does it forbid storing response anywhere? Yes [OK]
Quick Trick: No-store means no saving anywhere, ever [OK]
Common Mistakes:
MISTAKES
  • Confusing no-store with no-cache
  • Assuming no-store allows caching with revalidation
  • Thinking no-store only applies to browsers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes