Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
FastAPI Production
›
Module 6 · Real-World Patterns
›
Response caching with Cache-Control + ETag
quiz
88 / 105
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Critical header when caching authenticated responses? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Critical header when caching authenticated responses? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Cache-Control: public — alone, this lets CDN serve A's reply to B.
B
Add `Vary: Authorization` so the cache keys by auth header.
C
Disable caching entirely and accept the origin load.
D
Content-Type — required for content negotiation but irrelevant to leakage.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…