Bird
0
0

What does the If-Modified-Since header do in an HTTP request?

easy📝 Conceptual Q1 of 15
Rest API - Caching Strategies
What does the If-Modified-Since header do in an HTTP request?
AIt tells the server to ignore the resource modification date.
BIt asks the server to send the resource only if it has been modified after the specified date.
CIt forces the server to always send the full resource regardless of modification date.
DIt deletes the resource on the server if it was modified before the specified date.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of If-Modified-Since

    This header is used by clients to ask the server if the resource has changed since a certain date.
  2. Step 2: Analyze the behavior of the header

    If the resource has not changed since the date, the server responds with 304 Not Modified, saving bandwidth.
  3. Final Answer:

    It asks the server to send the resource only if it has been modified after the specified date. -> Option B
  4. Quick Check:

    If-Modified-Since = Conditional request [OK]
Quick Trick: If-Modified-Since asks if resource changed after date [OK]
Common Mistakes:
MISTAKES
  • Thinking it forces full resource download always
  • Confusing it with deleting resources
  • Assuming it ignores modification dates

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes