Workbox
Production-ready service worker libraries and tooling.
- Introduction to Workbox and service workers #
- Service worker overview An overview of service workers.
- A service worker's life Understanding the way that service workers behave to make offline applications possible.
- Strategies for service worker caching An overview of caching in service workers.
- What is Workbox? Introducing Workbox, a set of modules that simplify common service worker routing and caching.
- Service worker overview
- What you need to know #
- Expectations around service worker deployment Understanding the effect a service worker has on a website once deployed.
- Removing buggy service workers How to fix a service worker that is causing problems.
- Improving the service worker development experience How to solve some of the local development issues you may encounter when using service workers.
- Troubleshooting and logging A look at Workbox's logging features, and in-browser service worker debugging tools.
- Different service worker strategies for different architectures Introduction to the two different website architectures.
- Service workers and the application shell model How to pair the application shell model with a service worker in your SPA.
- Navigation Preload for Network-first HTML What Navigation Preload is, how it can make navigations faster, and how to use it in Workbox.
- Faster multipage applications with streams Learn how you can use workbox-streams to create multipage applications that use partial markup from the service worker cache and partial content from the network to create fast experiences that render almost instantaneously.
- Precaching dos and don'ts Learn the do's and don'ts of precaching.
- Understanding storage quota A guide on configuring Workbox to avoid storage quota issues.
- Expectations around service worker deployment
- Ways to use Workbox #
- The ways of Workbox Get familiar with some of the ways you can use Workbox.
- Precaching with Workbox Learn how to precache assets in a service worker with Workbox.
- Using Workbox without precaching How to build a service worker in Workbox without workbox-build.
- Framework integrations A quick reference of frameworks and plugins that integrate with Workbox
- The ways of Workbox
- Use cases and recipes #
- Using workbox-window Sometimes users go offline. Learn how to adapt, and help them resume requests when they eventually go back online.
- Caching resources during runtime Learn how to handle caching resources during runtime, including cross-origin resources.
- Forcing a network timeout Learn how to force a network timeout in the presence of a slow network connection, and how to get the timing right.
- Access caches from the window Accessing Cache instances isn't just restricted to the service worker scope. You can also access them from the window context, and in this article, you'll learn how.
- Serving cached audio and video Dealing with audio and video resource requests in a service worker is hard. Learn how to use workbox-range-request to deal with such requests in a predictable way.
- Managing fallback responses Sometimes users encounter network failures or go offline. Learn how to adapt to those situations and provide a fallback response.
- Handling service worker updates with immediacy Sometimes when you update a service worker, it's good to let users know. Here, you'll learn how to do just that.
- Retrying requests when back online Sometimes users go offline. Learn how to adapt, and help them resume requests when they eventually go back online.
- Using plugins While Workbox offers a lot of off-the-shelf utility, there may be times when you need to extend it to satisfy your application requirements. That's where Workbox's plugin architecture can come in handy.
- Using workbox-window
- Dig deeper into specific Workbox modules.
- Browse the API reference to get information on available methods in the Workbox API, broken down by module.
- How-to guides on migrating from older versions of Workbox.
- File issues, read release notes, and browse the source code.