Versioned keys.
also: versioned key · versioned cache keys · cache busting · cache-bustingPutting a version in the cache key (product:123:v5) or asset URL; a change bumps the version, so readers move to a fresh key.
the two-minute refresher
- No delete needed: old entries simply stop being read and expire.
- The current version number must itself be cheap to look up.
- For static assets: app.3f2a1c.js plus a one-year max-age, so a deploy changes the URL.