Service Workers: understand and use
summary
Starts from pure JavaScript ServiceWorkers and moves to Angular’s wrappers showing concrete code: registration line, SW.js event handlers (install, activate, fetch, message, push), Cache API usage and cache invalidation, and how Angular’s NGSW config maps install/update modes and dataGroups with freshness/performance strategies. Demonstrates that the Angular schematic gives an offline mode out of the box, explains SWUpdate subscription to prompt reloads on deploy, and mentions periodic sync and push subscription mechanics with practical debugging tips.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:03Service worker concept
- 7:49Features and limitations
- 8:11Registering a service worker
- 9:58Service worker lifecycle
- 13:34Fetch events and caching
- 14:41Client-worker messaging
- 16:12Push notifications
- 18:44Service workers in Angular
- 20:28Angular service worker config
- 21:09Caching strategies
- 22:38Caching external resources
- 24:06Updating service workers
- 25:45Q&A
related talks
36mAngular and Service Workers
32mBuilding an Angular PWA Angular Service Worker or Workbox?
34mService Workers & Cows — a love story
54mBuilding an Angular PWA: Angular Service Worker or Workbox?
01h 00mService Worker: Bringing Native App Experience to Web Apps
22mAutomatic Progressive Web Apps using Angular Service Worker
33mAngular and Service Workers
20mAngular Service Workers & Cows — a love story
