A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a service worker can control.
A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a
service worker can control. This is usually a relative URL. It is relative to the base URL of the application. By
default, the scope
value for a service worker registration is set to the directory where the service worker
script is located.
A string specifying the type of worker to create.
A string specifying the type of worker to create.
A string indicating how much of a service worker's resources will be updated when a call is made to
ServiceWorkerRegistration.updateViaCache
.
A string indicating how much of a service worker's resources will be updated when a call is made to
ServiceWorkerRegistration.updateViaCache
.
An object containing registration options.