workbox-routing

It's common in service workers to want to assign specific behaviors and logic to a subset of requests that are received via the fetch() event.

This library makes it easy to route requests to "handlers", which can be existing behaviors from Workbox or functions for custom handling of a request.

Classes

ExpressRoute
NavigationRoute
RegExpRoute
Route
Router