Service Worker Generator
Generate cache-first, network-first, or stale-while-revalidate service worker scripts with precache lists.
Cache strategy
Precache URLs
About this tool
Generate service worker scripts for progressive web apps with configurable cache strategies, precache URL lists, offline fallback pages, and a ready-to-paste registration snippet.
How to use
Strategy
Select cache-first, network-first, or stale-while-revalidate.
Precache
Add static asset paths to warm the cache on install.
Deploy
Copy sw.js to your site root and add the register snippet to your entry bundle.
Frequently asked questions
Related guides
Related tools
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML
Apache Config Generator
Build an Apache 2.4 VirtualHost — ServerName, DocumentRoot, Directory, aliases, and optional SSL
AWS Architecture Diagram
Drag-and-drop AWS service blocks, connect edges and export architecture diagrams as SVG
AWS Pricing Calculator
Estimate monthly AWS costs from static list prices with a Chart.js breakdown
Azure Architecture Diagram
Compose Azure architecture diagrams with VM, Storage, Functions, AKS blocks and SVG export