flâneur — a map of the web's best reading

Service Worker API - Web APIs | MDN

developer.mozilla.org · 1,713 words · saved by 1 readers

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