Browser - Service Worker (Offline / Cache enhanced capability)

1 - About

A service worker is a type of worker (JavaScript application) installed in the browser that can act as a forward proxy.

It can intercept, modify and cache the http requests (and associated resources) created by the browser.

The service worker needs to be registered (associated with) against:

3 - Usage

  • the most obvious usage being when the network is not available

The first time a user visits your page using a browser that supports service worker, all of the resources needed to use the page offline can be automatically cached locally, and each subsequent visit to any page on the site will be:

  • a) fast (since there's no network dependency)
  • b) work offline (for the same reason).

4 - Tool

4.1 - Workbox

4.2 - Test

5 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap