Bird
0
0

Which HTTP header is commonly used to specify the expiration time for cached responses?

easy📝 Conceptual Q2 of 15
Rest API - Caching Strategies
Which HTTP header is commonly used to specify the expiration time for cached responses?
ACache-Control
BAuthorization
CContent-Type
DAccept-Encoding
Step-by-Step Solution
Solution:
  1. Step 1: Identify headers related to caching

    Cache-Control header controls caching policies including expiration time.
  2. Step 2: Eliminate unrelated headers

    Authorization is for access, Content-Type for data format, Accept-Encoding for compression.
  3. Final Answer:

    Cache-Control -> Option A
  4. Quick Check:

    Expiration header = Cache-Control [OK]
Quick Trick: Cache-Control header sets expiration time for caching [OK]
Common Mistakes:
MISTAKES
  • Confusing Cache-Control with Authorization header
  • Using Content-Type or Accept-Encoding for caching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes