Bird
0
0

Which Cache-Control directive tells the browser to always revalidate the resource before using it?

easy📝 Conceptual Q2 of 15
Rest API - Request and Response Format
Which Cache-Control directive tells the browser to always revalidate the resource before using it?
Amust-revalidate
Bno-store
Cpublic
Dmax-age=3600
Step-by-Step Solution
Solution:
  1. Step 1: Identify the directive for revalidation

    The 'must-revalidate' directive forces the client to check with the server before using cached data.
  2. Step 2: Compare with other directives

    'no-store' prevents caching, 'public' allows caching by any cache, 'max-age' sets cache time but doesn't force revalidation.
  3. Final Answer:

    must-revalidate -> Option A
  4. Quick Check:

    must-revalidate = Revalidate before use [OK]
Quick Trick: Use must-revalidate to force cache check before use [OK]
Common Mistakes:
  • Confusing no-store with must-revalidate
  • Thinking max-age forces revalidation
  • Assuming public disables revalidation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes