This is a demo that I made to learn (and help others learn) about the service worker life cycle.
Once you've cloned the repo, start a local server in the project directory and navigate to the appropriate local host port (e.g. http://localhost:8000/).