Service worker events give you gateways to the service worker life cycle in order to apply your caching strategy. But there is more to this than just checking whether a valid response has been cached or is passing the request to the network. You should have a plan of how your application will use the service worker cache, events, and the network to deliver the best experience.
This means that you need to have a collection of common patterns and strategies to build your application logic upon. The rest of the chapter will review common caching patterns that you can use to build your applications.
Strategies are the combination of guidelines and example code that you can use to build your applications. As you continue through this book, you will see these strategies used in the PodStr and PWA Tickets applications.