~/talk

Service Workers: understand and use

Talkat angularday 2022 · on Friday, 2022-10-07· [angular, web-platform]
slides:none on file

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

  1. 0:00Introduction
  2. 3:03Service worker concept
  3. 7:49Features and limitations
  4. 8:11Registering a service worker
  5. 9:58Service worker lifecycle
  6. 13:34Fetch events and caching
  7. 14:41Client-worker messaging
  8. 16:12Push notifications
  9. 18:44Service workers in Angular
  10. 20:28Angular service worker config
  11. 21:09Caching strategies
  12. 22:38Caching external resources
  13. 24:06Updating service workers
  14. 25:45Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.