Bird
0
0

Which HTTP header is commonly used to control client-side caching behavior in Flask responses?

easy📝 Conceptual Q2 of 15
Flask - Performance Optimization
Which HTTP header is commonly used to control client-side caching behavior in Flask responses?
AAuthorization
BCache-Control
CContent-Type
DUser-Agent
Step-by-Step Solution
Solution:
  1. Step 1: Identify headers related to caching

    The Cache-Control header tells browsers how to cache responses.
  2. Step 2: Confirm other headers are unrelated

    Content-Type defines data type, Authorization is for security, User-Agent identifies client.
  3. Final Answer:

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

    Client caching header = Cache-Control [OK]
Quick Trick: Cache-Control header manages browser caching [OK]
Common Mistakes:
MISTAKES
  • Confusing Content-Type with caching headers
  • Using Authorization header for caching
  • Mistaking User-Agent as cache control

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes