Bird
0
0

What will happen if you set the Cache-Control header to no-store in a Flask response?

medium📝 Conceptual Q5 of 15
Flask - Performance Optimization
What will happen if you set the Cache-Control header to no-store in a Flask response?
AThe response will be cached indefinitely
BThe response will only be cached on the server
CThe response will not be cached by browsers or proxies
DThe response will be cached but not served
Step-by-Step Solution
Solution:
  1. Step 1: Understand Cache-Control no-store directive

    no-store tells browsers and proxies not to cache the response at all.
  2. Step 2: Eliminate other options

    It does not cache indefinitely, nor caches only on server, nor caches without serving.
  3. Final Answer:

    The response will not be cached by browsers or proxies -> Option C
  4. Quick Check:

    Cache-Control no-store = no client caching [OK]
Quick Trick: no-store disables all client and proxy caching [OK]
Common Mistakes:
MISTAKES
  • Thinking no-store caches indefinitely
  • Assuming server caches with no-store
  • Confusing no-store with no-cache

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes