Bird
0
0

A response header is set as Cache-Control: max-age=30, no-store. What is the effect of no-store here?

medium📝 Debug Q7 of 15
Rest API - Caching Strategies
A response header is set as Cache-Control: max-age=30, no-store. What is the effect of no-store here?
AThe response will not be cached at all, ignoring max-age
BThe response will be cached for 30 seconds
CThe response will be cached but not stored on disk
DThe response will be cached only if the client agrees
Step-by-Step Solution
Solution:
  1. Step 1: Understand no-store directive

    no-store means do not cache or store the response anywhere.
  2. Step 2: Analyze interaction with max-age

    no-store overrides max-age, so no caching happens despite max-age.
  3. Final Answer:

    The response will not be cached at all, ignoring max-age -> Option A
  4. Quick Check:

    no-store disables caching regardless of max-age [OK]
Quick Trick: no-store disables caching even if max-age is set [OK]
Common Mistakes:
MISTAKES
  • Thinking max-age still applies with no-store
  • Confusing no-store with no-cache

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes