Skip to content

HTTP Caching

HTTP caching reduces network requests and improves perceived performance.

  1. In-memory: shareReplay(1) for same-page caching
  2. Interceptor cache: Map<url, CachedResponse> with TTL
  3. Browser cache: ETag/Last-Modified headers
  4. Service Worker: PWA offline caching

Combine multiple caching strategies for optimal performance.”