Service Worker API - Web APIs | MDN
Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available). They are intended, among other things, to enable the creation of effective offline experiences, intercept network requests, and take appropriate action based on whether the network is available, and update assets residing on the server. They will also allow access to push notifications and background sync APIs. A service worker is an event-driven worker registered against an origin and a path. It takes the form of a JavaScript file that can control the web page/site that it is associated with, intercepting and modifying navigation and resource requests, and caching resources in a very granular fashion to give you complete control over how your app behaves in certain situations (the most obvious one being when the network is not available). Service workers run in a worker context: they therefore have no DOM access and run on a different thread to the main Ja
Service Worker API - Web APIs | MDN Skip to main content Skip to search Service Worker API Note: This feature is available in Web Workers . Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available). They are intended, among other things, to enable the creation of effective offline experiences, intercept network requests, and take appropriate action based on whether the network is available, and update assets residing on the server. They will also allow access to push notifications and background sync APIs. Note: Service wo
Explore this link on the map →related reading
- Service worker overview | Workbox | Chrome for Developersdeveloper.chrome.com
- A service worker's life | Workbox | Chrome for Developersdeveloper.chrome.com
- The service worker lifecycle | Articles | web.devweb.dev
- The service worker lifecycle | Articles | web.devweb.dev
- Service worker registration | Articles | web.devweb.dev
- Use the Service Worker Static Routing API to bypass the service worker for specific paths | Blog | Chrome for Developersdeveloper.chrome.com
- Web Workers API - Web APIs | MDNdeveloper.mozilla.org
- ServiceWorkerGlobalScope: skipWaiting() method - Web APIs | MDNdeveloper.mozilla.org
- Handling navigation requests | Articles | web.devweb.dev
- Google Analytics for PWAs: Tracking offline behaviour and more - Builtvisiblebuiltvisible.com
- Web Workers, comlink, TypeScript and React | johnnyreillyjohnnyreilly.com
- Cookie Store API - Web APIs | MDNdeveloper.mozilla.org