serviceworker

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

The serviceworker member specifies a serviceworker that is Just-In-Time (JIT)-installed and registered to run a web-based payment app providing a payment mechanism for a specified payment method in a merchant website. See Web-based Payment Handler API for more details.

Values

serviceworker objects may contain the following values:

scope

A string representing the service worker's registration scope.

src

A string representing the URL to download the service worker script from.

use_cache

A boolean that sets how the HTTP cache is used for service worker script resources during updates. It provides equivalent functionality to certain values of the updateViaCache option provided when a service worker is registered via JavaScript using ServiceWorkerContainer.register().

Examples

See Web-based Payment Handler API > Concepts and usage.

Specifications

See also