Go Offline with Service Workers
summary
Service workers replace AppCache with a programmatic proxy that runs on HTTPS (localhost excepted), lets code register via navigator.serviceWorker.register, manage caches with the caches API, and intercept fetch with event.respondWith. The demo shows versioned caches, the need to Response.clone() when storing and returning responses, lifecycle hooks using waitUntil, and strategies like network-first and cache-first (plus racing network vs cache). Push, background sync and geofencing are shown as working next-step features and demos are hosted on HTTPS.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:05AppCache Manifest - The unloved child
- 6:19Prerequisites
- 8:51Adding static contents to the cache (a)
- 9:53Adding static contents to the cache (b)
- 12:26Taking a break...
- 19:01Other Service Worker-related Specifications








