awesome-everything RU
↑ Back to the climb

Caching

Cache-Control: free-recall review

Crux Free-recall prompts across the Cache-Control unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the directive semantics stick.

Goal

Reconstruct the unit’s core distinctions — store vs revalidate, browser vs shared TTL, public vs private, immutable assets, and stale serving — without looking back at the lesson.

Recall before you leave
  1. 01
    Explain the difference between no-store and no-cache, and why conflating them causes real incidents.
  2. 02
    What is the relationship between max-age and s-maxage, and what breaks when you forget s-maxage behind a CDN?
  3. 03
    Why is the absence of private on an authenticated route a classic data-leak, and what is the senior reflex?
  4. 04
    Walk through why content-hashed filenames make public, max-age=31536000, immutable both aggressive and correct, and what must NOT be cached that way.
  5. 05
    What do stale-while-revalidate and stale-if-error do, and how do they differ from must-revalidate?
  6. 06
    What does Vary do, why is it a cache key rather than a safety directive, and where does it fail you?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: no-store forbids storage while no-cache only forces revalidation, so the name of no-cache is the trap; max-age governs every cache and s-maxage overrides it for shared caches only, so forgetting s-maxage hands the CDN the wrong TTL; private keeps per-user responses off the CDN and its absence is the classic leak; content-hashed filenames make immutable one-year caching correct because a change means a new URL; stale-while-revalidate and stale-if-error trade staleness for latency and resilience against must-revalidate’s strictness; and Vary keys variants rather than excluding sharing, so safety must live in private/no-store.

Continue the climb ↑Cache-Control: header reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.