Service workers static routing
Limited availability
The service worker install event's addRoutes method declares resource paths that should either be fetched from the network or the cache, to bypass the service worker and improve performance.
Browser support
- Chrome 123 Released on 2024-03-19
- Chrome Android 123 Released on 2024-03-19
- Edge 123 Released on 2024-03-22
- Firefox Not supported Bugs: 1855580
- Firefox for Android Not supported Bugs: 1855580
- Safari 27 Released on 2026-09-14
- Safari on iOS 27 Released on 2026-09-14
Baseline availability blocked since September 2026 by Firefox (1 months)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- Service Workers Nightly, from Web Applications Working Group (W3C).
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist