service worker

A script the browser runs in the background, separate from pages, that can intercept a site's network requests and act as a programmable proxy.

In more detail

Through its fetch event it can answer requests from a cache, the network or both, which enables offline support. It also receives push and sync events even when no page is open. Service workers only run on secure HTTPS origins.

Related terms

Taught in

References