Path: blob/main/files/en-us/web/manifest/serviceworker/index.md
6580 views
------{{QuickLinksWithSubpages("/en-US/docs/Web/Manifest")}}{{SeeCompatTable}}{{Non-standard_header}}
| Type | Object |
|---|---|
| Mandatory | No |
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 {{domxref("Payment Handler API", "Payment Handler API", "", "nocode")}} for more details.
Example
See Payment Handler API > Concepts and usage.
Values
serviceworker objects may contain the following values:
| Member | Description |
|---|---|
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 {{domxref("ServiceWorkerContainer.register()")}}.
|
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{domxref("Service Worker API", "Service Worker API", "", "nocode")}}
{{domxref("Payment Handler API", "Payment Handler API", "", "nocode")}}