Web Caching: Strategies, Pitfalls and Modern Tools
summary
Covers client-side web caching: explains HTTP cache validation using ETag and Last-Modified and why simple fresh/stale logic is insufficient; examines Service Workers as a programmable cache layer, their benefits and pitfalls and when to use them; reviews modern client libraries—Axios Cache Interceptor for transport caching and TanStack Query for integrating API data into UI state with deduplication and optimistic updates—and discusses how to measure client-side caching effectiveness to design a performant caching strategy.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 2:26Speaker relevance
- 3:09HTTP cache basics
- 8:02Cache keys and Vary
- 10:30Cache-Control directives
- 13:17Caching best practices
- 16:49HTTP cache limits
- 22:48Service Worker emergence
- 25:55Service Worker conflicts
- 27:42Service Worker best practices
- 29:49SPA caching
- 31:12Axios Cache Interceptor
- 34:05TanStack Query caching
- 39:42API caching with Service Workers
- 40:48Client caching metrics
- 45:41Summary and tools
related talks
44m#BackToBasics: The HTTP Cache
36mCaching strategies and their performance footprint
27mCaching for Cash
51mCaching on Client and Server
55m#BackToBasics: The HTTP Cache
25mCaching strategies on https://dev.to
16mWhat's next in the HTTP caching world
09mCache 101: Understand key strategies before applying them
