web manifest member
serviceworker
Limited availability
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:
-
scopeExperimental- : A string representing the service worker’s registration scope.
-
srcExperimental- : A string representing the URL to download the service worker script from.
-
use_cacheExperimental- : 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
updateViaCacheoption provided when a service worker is registered via JavaScript usingregister().true: The HTTP cache will be queried for imports, but the main script will always be updated from the network. If no fresh entry is found in the HTTP cache for the imports, they’re fetched from the network. Equivalent toupdateViaCache: "imports".false: The HTTP cache will not be used for the main script or its imports. All service worker script resources will be updated from the network. Equivalent toupdateViaCache: "none".
- : 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
Examples
See Web-based Payment Handler API > Concepts and usage.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.