Bird
0
0

Find the mistake in this server response:

medium📝 Debug Q7 of 15
Rest API - Caching Strategies

Find the mistake in this server response:
HTTP/1.1 304 Not Modified
ETag: xyz789

A304 responses should not include ETag header
BETag value is not enclosed in quotes
CStatus code should be 200 OK instead
DETag header name is misspelled
Step-by-Step Solution
Solution:
  1. Step 1: Review ETag header format in responses

    ETag values must be enclosed in double quotes in all responses.
  2. Step 2: Identify the missing quotes

    The value xyz789 is unquoted, which is incorrect.
  3. Final Answer:

    ETag value is not enclosed in quotes -> Option B
  4. Quick Check:

    ETag values always need double quotes [OK]
Quick Trick: ETag header values must be quoted in all responses [OK]
Common Mistakes:
MISTAKES
  • Leaving ETag unquoted
  • Thinking 304 disallows ETag
  • Misspelling header names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes