A nice little walkthrough of a straightforward Service Worker for a content-based site, like a blog.
Link archive: July 22nd, 2016
The life cycle of a Service Worker—with all its events and states—is the one bit that I’ve never paid that much attention to. My eyes just glaze over when it comes to installation, registration, and activation. But this post explains the whole process really clearly. Now it’s starting to make sense to me.