What Is Service Worker Life Cycle?
A service worker has a life cycle that is completely separate from your web apps page.
To install a service worker for our site, we need to register it, which we do on our pages. To Registering a service worker will cause the browser to start the service worker install step in the background process.
Prerequisites to Supports Service workers-
1. Browser support
2. You need HTTPS
Got a minute? Check out this, Angular 6 Questions | A Complete Guide Book