Chapter 3. Making Fetch Happen

Right now, your service worker file is empty. An empty service worker file won’t do anything by default. That might sound obvious, but it’s a very deliberate design decision. There are plenty of technologies that try to anticipate your needs and provide you with default behaviors without you having to specify anything. That sounds great—unless those default behaviors are not what you wanted.

I realize I’m being quite vague, so I’ll be more specific. But I warn you, I am about to drag some skeletons from the darkest depths of the browser and out into the light. Huddle a little closer to the campfire, and I’ll position this flashlight under my ...

Get Going Offline now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.