Service Workers & Cows — a love story
summary
Service workers turn a slow 6 megabit Internet into a usable site by caching assets and API responses; this demo uses Angular’s service worker via npm install @angular/service-worker, an ngsw-config.json with custom dataGroup routes, ng build --prod and a static HTTP server with --proxy to localhost:8801. Expect painful dependency upgrades, ng serve not supporting service workers, long builds (stalled at chunk optimization), cached assets delaying visible updates, and finally offline pages and cached tags/articles working as intended.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:58Service workers as pain relief
- 6:25Adding to ng-doc.io
- 10:21Enabling the service worker
- 13:31Building and serving the application
- 16:38Testing offline
- 21:15Updating cache and logo
- 25:31Fetching via proxy
- 27:38Custom caching
- 29:24Why service workers matter
- 30:09Q&A
related talks
34mService Workers & Cows — a love story
20mAngular Service Workers & Cows — a love story
34mService Workers & Cows — a love story
36mAngular and Service Workers
43mService workers
29mService Workers: understand and use
27mMaking Offline Suck Less with Service Workers
01h 00mService Worker: Bringing Native App Experience to Web Apps
