-
Performance
Design a service worker caching strategy that won't bite me
Add offline support and faster repeat visits with explicit cache rules, versioning, and an escape hatch.
Free Prompt
What This Does / How This Helps
This designs a service worker with explicit per-asset caching rules, deploy versioning, an update flow, and a kill switch, so you get offline support and fast repeat visits without the stale-content trap. A service worker is the one browser feature that can outlive your ability to fix it: ship a caching bug and affected users serve broken or ancient versions of your app indefinitely, immune to your deploys. That's why 'just add a service worker' prompts end in horror stories. Done with versioning and an escape hatch, it's genuinely valuable; done carelessly, it's the bug that survives your fixes. This builds it the careful way.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).