Production-ready service worker libraries and tooling.

Intro to service workers

Learn how service workers can progressively enhance your website and how Workbox helps.
Service workers are specialized JavaScript assets that act as proxies between web browsers and web servers.
Understanding the way that service workers behave to make offline applications possible.
Strategies for interaction between a service worker's fetch event and the Cache interface.
A set of modules that simplify common service worker routing and caching.

What you need to know

Guidance to consider when building a service worker.
Understand the effect a service worker has on a website once deployed.
How to fix a service worker that is causing problems.
Solve some of the local development issues you may encounter when using service workers.
A look at Workbox's logging features, and in-browser service worker debugging tools.
Introduction to the two different website architectures.
How to pair the application shell model with a service worker in your SPA.
What Navigation Preload is, how it speeds up navigation, and how to use it in Workbox.
Use workbox-streams to create multi-page applications to create fast experiences that render almost instantaneously.
Learn the do's and don'ts of pre-caching.
A guide on configuring Workbox to avoid storage quota issues.

Use cases and recipes

Learn how to handle different use cases to get the most out of Workbox.
Sometimes users go offline. Learn how to adapt, and help them resume requests when they eventually go back online.
Learn how to handle caching resources during runtime, including cross-origin resources.
Learn how to force a network timeout in the presence of a slow network connection, with the right timing.
Accessing cache instances isn't just restricted to the service worker scope. Learn how to access them from the window context.
Learn how to use workbox-range-request to deal with audio and video resource requests in a predictable way.
Sometimes users encounter network failures or go offline. Learn how to adapt to those situations and provide a fallback response.
How to update users when you update a service worker.
Sometimes users go offline. Learn how to adapt, and help them resume requests when they come back online.
While Workbox offers lots of off-the-shelf utility, you may need to extend it to satisfy application requirements.

Additional resources

Dive deeper into Workbox modules, source code, and more.
Service workers are specialized JavaScript assets that act as proxies between web browsers and web servers.
File issues, read release notes, and browse the source code.