Service Worker Routing
In this post, I discuss a new routing framework I've added to my service worker.  It's based on my older LeviRoutes project and allows me to handle different URL patterns separately.  This is much cleaner than a complex onfetch handler, and lets me easily manage things like requests to analytics services and my caching strategy.  While sw-toolbox is a great alternative, I enjoyed the flexibility and learning experience of building my own. I encourage you to check out the code and consider routing in your own service workers.
