Bird
0
0

Which Cache-Control directive forces caches to revalidate the resource with the server before using it?

easy📝 Conceptual Q2 of 15
Rest API - Caching Strategies
Which Cache-Control directive forces caches to revalidate the resource with the server before using it?
Amax-age
Bno-cache
Cno-store
Dpublic
Step-by-Step Solution
Solution:
  1. Step 1: Identify the directive that requires revalidation

    The 'no-cache' directive means caches must check with the server before using the cached response.
  2. Step 2: Differentiate from other directives

    'max-age' sets freshness time, 'no-store' disables caching, and 'public' allows caching by any cache.
  3. Final Answer:

    'no-cache' forces revalidation before use. -> Option B
  4. Quick Check:

    no-cache = revalidate before use [OK]
Quick Trick: 'no-cache' means check with server before using cache [OK]
Common Mistakes:
MISTAKES
  • Confusing 'no-cache' with 'no-store'
  • Thinking 'max-age' forces revalidation
  • Assuming 'public' affects revalidation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes