Now that you know what service workers are and how to implement a very basic one, in this chapter you’re going to go beyond the basics. We want apps to be fast, reliable, and work offline whenever possible. So now I’m going to talk about the Cache API that lets us return items we specify from the cache instead of making the whole journey to the server.
The fetch Event
Before you can cache anything, you need to be able to intercept network requests. That’s trivial using your service worker. Every network call originating ...