Bird
0
0

Which HTTP header should a client send to make a conditional GET request using an ETag?

easy📝 Syntax Q12 of 15
Rest API - Caching Strategies

Which HTTP header should a client send to make a conditional GET request using an ETag?

AIf-Modified-Since
BIf-None-Match
CETag
DCache-Control
Step-by-Step Solution
Solution:
  1. Step 1: Identify client header for ETag conditional requests

    The client sends If-None-Match header with the ETag value to check freshness.
  2. Step 2: Compare options

    If-Modified-Since uses dates, ETag is a response header, Cache-Control controls caching rules. Only If-None-Match fits.
  3. Final Answer:

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

    Client uses If-None-Match for ETag check [OK]
Quick Trick: Client sends If-None-Match with ETag to check freshness [OK]
Common Mistakes:
MISTAKES
  • Using ETag header in request instead of response
  • Confusing If-Modified-Since with ETag usage
  • Sending Cache-Control instead of conditional header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes