Bird
0
0

To perform a conditional GET request that uses an ETag to check if the resource has changed, which HTTP header must the client send?

easy📝 Conceptual Q2 of 15
Rest API - Caching Strategies

To perform a conditional GET request that uses an ETag to check if the resource has changed, which HTTP header must the client send?

AIf-Modified-Since
BIf-Match
CETag
DIf-None-Match
Step-by-Step Solution
Solution:
  1. Step 1: Understand conditional GET

    A conditional GET request asks the server to send the resource only if it has changed.
  2. Step 2: Identify the correct header

    The If-None-Match header is used by the client to provide the ETag value it has, so the server can compare and decide if the resource has changed.
  3. Final Answer:

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

    Conditional GET uses If-None-Match header [OK]
Quick Trick: Use If-None-Match header for conditional GET with ETag [OK]
Common Mistakes:
MISTAKES
  • Confusing If-Match with If-None-Match
  • Sending ETag header in request instead of response
  • Using If-Modified-Since instead of ETag-based header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes