Bird
0
0

Which HTTP header does the client send to ask the server if the cached data is still valid?

easy📝 Syntax Q12 of 15
Rest API - Caching Strategies
Which HTTP header does the client send to ask the server if the cached data is still valid?
AIf-Modified-Since
BETag
CIf-None-Match
DCache-Control
Step-by-Step Solution
Solution:
  1. Step 1: Identify client headers for validation

    The client uses headers to tell the server what version it has.
  2. Step 2: Match header for ETag validation

    The If-None-Match header is sent with the ETag value to check if data changed.
  3. Final Answer:

    If-None-Match -> Option C
  4. Quick Check:

    Client asks with If-None-Match header [OK]
Quick Trick: Client sends If-None-Match with ETag to validate cache [OK]
Common Mistakes:
MISTAKES
  • Confusing If-Modified-Since with If-None-Match
  • Using Cache-Control header for validation
  • Thinking ETag is sent by client

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes