Back
Caching Strategies
HTTP caching, CDN, application caches, and invalidation.
Layers
- Browser: Cache-Control, ETags, and service workers.
- CDN: edge cache with stale-while-revalidate.
- App: Redis/Memory with TTLs and cache keys.
Invalidation
Prefer time-based TTLs with background refresh. Avoid manual purges where possible.