Workbox
Production-ready service worker libraries and tooling.
- Introduction to Workbox and service workers #
- Service worker overviewAn overview of service workers.
- A service worker's lifeUnderstanding the way that service workers behave to make offline applications possible.
- Strategies for service worker cachingAn 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 deploymentUnderstanding the effect a service worker has on a website once deployed.
- Removing buggy service workersHow to fix a service worker that is causing problems.
- Improving the service worker development experienceHow to solve some of the local development issues you may encounter when using service workers.
- Troubleshooting and loggingA look at Workbox's logging features, and in-browser service worker debugging tools.
- Different service worker strategies for different architecturesIntroduction to the two different website architectures.
- Service workers and the application shell modelHow to pair the application shell model with a service worker in your SPA.
- Navigation Preload for Network-first HTMLWhat Navigation Preload is, how it can make navigations faster, and how to use it in Workbox.
- Faster multipage applications with streamsLearn 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'tsLearn the do's and don'ts of precaching.
- Understanding storage quotaA guide on configuring Workbox to avoid storage quota issues.
- Expectations around service worker deployment
- Ways to use Workbox #
- The ways of WorkboxGet familiar with some of the ways you can use Workbox.
- Precaching with WorkboxLearn how to precache assets in a service worker with Workbox.
- Using Workbox without precachingHow to build a service worker in Workbox without workbox-build.
- Framework integrationsA quick reference of frameworks and plugins that integrate with Workbox
- The ways of Workbox
- Use cases and recipes #
- Using workbox-windowSometimes users go offline. Learn how to adapt, and help them resume requests when they eventually go back online.
- Caching resources during runtimeLearn how to handle caching resources during runtime, including cross-origin resources.
- Forcing a network timeoutLearn 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 windowAccessing 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 videoDealing 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 responsesSometimes users encounter network failures or go offline. Learn how to adapt to those situations and provide a fallback response.
- Handling service worker updates with immediacySometimes 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 onlineSometimes users go offline. Learn how to adapt, and help them resume requests when they eventually go back online.
- Using pluginsWhile 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.