Resources/Engineering
Understanding Service Worker Lifecycle Events
Published

Install, activate, and fetch are the three moments that decide whether a returning visitor sees the new shell or the one already on disk.
Skip waiting only after the page can tolerate a controller change. Otherwise queue the update and apply it on the next navigation so carts, drafts, and open forms survive.

Written by Alex Thorne
Chief Architect at OnePWA.
Related Articles

Engineering••8 min read
The Architecture of 1PWA: Achieving sub-second loads with Advanced Caching
Explore the low-level design patterns of our service worker implementation. Discover how to orchestrate automated shell pre-caching and stateful offline fallbacks.
Alex Thorne

Engineering••4 min read
Service Worker Background Sync Best Practices
Enabling reliable background requests that wait for connection recovery.
Lisa Park