Service workers - beyond the cache
summary
Service workers power push notifications, background sync and more beyond simple caching, with concrete demos: a web SMS inbox uses VAPID keys and web-push libraries to subscribe and deliver pushes (Chrome/Firefox/Edge support ~75% of users), and an offline write is stored in IndexedDB then replayed by background sync (global support ~67%) — demo shows the queued message is sent when connectivity returns. Workbox is recommended for declarative queues; background fetch remains experimental.
AI-written summary · about
chapters (11)
- 0:00Intro
- 1:14Service Worker Support
- 5:39Push Notification Support
- 7:36Good notifications
- 21:37Receive notification (service worker)
- 25:29Permissions
- 35:44Background Sync Support
- 37:57Register for Sync event
- 39:02Service worker sync event
- 46:22In the service worker
- 46:47Background fetch Audio and video








