Skip to content
Web & InternetLocal · Stays on device

Service Worker Cache Planner

Plan caching strategies per route for a PWA, catch risky choices, and get an illustrative service-worker script to review.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
service-worker-cache-plannerOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

The generated script is illustrative and must be reviewed and tested before use. A misconfigured service worker can keep serving stale or private content; plan versioning and a rollback.

About this tool

Add routes by path prefix, extension or exact path and choose a strategy for each — cache-first, network-first, stale-while-revalidate, network-only or cache-only — with a cache name, maximum entries and maximum age. The planner explains every strategy and warns about risky choices: caching authenticated or payment routes, unbounded caches, cache-first HTML and shared cache names.

Export the plan as CSV and an illustrative plain-JavaScript service worker with versioned caches, install-time pre-caching and old-cache clean-up, to review with your team. Everything runs in your browser: nothing you paste or type is uploaded, and no website, DNS server or API is contacted.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    List your routes and pick a strategy for each.

  2. 2

    Fix the risks it flags.

  3. 3

    Download the plan and review the sample script before adapting it.

Zero-upload architecture

How to use Service Worker Cache Planner for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Service Worker Cache Planner

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Fix the risks it flags.

  3. 3

    Get your result

    Download the plan and review the sample script before adapting it.

All 26 web tools
  • Local

    PWA Checklist

    A practical progressive web app checklist with automatic checks on your pasted <head> and manifest.

    Open tool
  • Local

    Web Manifest Generator

    Create a web app manifest (site.webmanifest) with icons and theme colours, and check it for installability.

    Open tool
  • Local

    UTM Link Builder

    Build campaign-tagged links with UTM parameters, one at a time or in bulk, with tidy formatting.

    Open tool