Bird
0
0

A server sends:

medium📝 Debug Q7 of 15
Rest API - Request and Response Format
A server sends:
Cache-Control: max-age=3600, must-revalidate

But the client ignores must-revalidate and uses cached data after 2 hours. What is the issue?
Amax-age overrides must-revalidate after expiration
BETag header is missing, so caching fails
CServer header syntax is incorrect
DClient is not respecting must-revalidate directive
Step-by-Step Solution
Solution:
  1. Step 1: Understand must-revalidate effect

    must-revalidate forces clients to check with server after max-age expires before using cache.
  2. Step 2: Analyze client behavior

    Client using cached data after 2 hours (beyond max-age) without revalidation means it ignores must-revalidate.
  3. Final Answer:

    Client is not respecting must-revalidate directive -> Option D
  4. Quick Check:

    Ignoring must-revalidate = client error [OK]
Quick Trick: must-revalidate requires client to check after expiry [OK]
Common Mistakes:
  • Thinking max-age overrides must-revalidate
  • Blaming server syntax for client caching
  • Assuming ETag is required for must-revalidate

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes