SEO & Performance

Service Worker Cache Planner

Pick the request categories your app handles, choose a caching strategy for each, and get ready-to-ship service worker code. Everything is planned locally — your plan never leaves the page.

Runs in your browser v1.0.0

1. Start from a plan

start here

Choose the closest match for your app. The plan and the generated code update immediately, and you can fine-tune every route below.

2. Request categories & strategies

the plan

3. Generated service worker

live
Output format



                    

Caching strategies at a glance

    How it works

    Each row maps a category of requests to a caching strategy and a URL match expression. Routes are registered top to bottom, so the first match wins — more specific categories are placed before catch-alls such as third-party requests. The Workbox output uses registerRoute() with the matching strategy class, while the vanilla output writes a plain fetch handler using the Cache API. Nothing is uploaded; the whole plan is generated in your browser and the current plan is mirrored in the URL fragment so it can be bookmarked or shared.