Bird
0
0

Which of the following is the correct syntax to send an If-Modified-Since header in an HTTP request?

easy📝 Syntax Q12 of 15
Rest API - Caching Strategies
Which of the following is the correct syntax to send an If-Modified-Since header in an HTTP request?
AIf-Modified-Since: 2023-01-01T12:00:00Z
BIf-Modified-Since = "2023-01-01 12:00:00"
CIf-Modified-Since -> 01/01/2023 12:00
DIf-Modified-Since: Sun, 01 Jan 2023 12:00:00 GMT
Step-by-Step Solution
Solution:
  1. Step 1: Recall HTTP header date format

    HTTP headers use the RFC 1123 date format like Sun, 01 Jan 2023 12:00:00 GMT for date/time values.
  2. Step 2: Match options to correct format

    If-Modified-Since: Sun, 01 Jan 2023 12:00:00 GMT matches the correct header syntax and date format. Other options use invalid syntax or date formats.
  3. Final Answer:

    If-Modified-Since: Sun, 01 Jan 2023 12:00:00 GMT -> Option D
  4. Quick Check:

    If-Modified-Since uses RFC 1123 date format [OK]
Quick Trick: Use RFC 1123 date format for If-Modified-Since header [OK]
Common Mistakes:
MISTAKES
  • Using ISO 8601 instead of RFC 1123 format
  • Using '=' instead of ':' in header
  • Using arrow '->' instead of colon

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes