Bird
0
0

You want to implement conditional GET requests using ETag in your REST API. Which client header should be sent to enable this?

hard📝 Application Q9 of 15
Rest API - Request and Response Format
You want to implement conditional GET requests using ETag in your REST API. Which client header should be sent to enable this?
AIf-Modified-Since
BIf-None-Match
CCache-Control
DETag
Step-by-Step Solution
Solution:
  1. Step 1: Understand conditional GET with ETag

    The client sends If-None-Match with the ETag value to ask if resource changed.
  2. Step 2: Differentiate headers

    If-Modified-Since uses date, Cache-Control controls caching, ETag is a response header, not request.
  3. Final Answer:

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

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

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes