Bird
0
0

Why might a server choose to ignore the If-Modified-Since header and always send a full response?

hard📝 Conceptual Q10 of 15
Rest API - Caching Strategies
Why might a server choose to ignore the If-Modified-Since header and always send a full response?
ABecause the client did not send an ETag header.
BBecause the resource changes too frequently or modification time is unreliable.
CBecause the server does not support HTTP/1.1.
DBecause the client requested a 304 status explicitly.
Step-by-Step Solution
Solution:
  1. Step 1: Consider reasons to ignore If-Modified-Since

    If resource changes very often or modification timestamps are not accurate, conditional requests may be unreliable.
  2. Step 2: Understand server behavior

    In such cases, server may always send full response to ensure client has latest data.
  3. Final Answer:

    Because the resource changes too frequently or modification time is unreliable. -> Option B
  4. Quick Check:

    Unreliable mod time disables conditional GET [OK]
Quick Trick: Ignore If-Modified-Since if mod time unreliable [OK]
Common Mistakes:
MISTAKES
  • Thinking ETag absence forces ignoring header
  • Assuming HTTP version disables conditional GET
  • Believing client can request 304 explicitly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes