Firefox Tomorrow

http header

Service-Worker header

View on MDN ↗

The HTTP Service-Worker request header is included in fetches for a service worker’s script resource. This header helps administrators log service worker script requests for monitoring purposes.

Header type [Request header](https://developer.mozilla.org/en-US/docs/Glossary/Request%20header)
[Forbidden request header](https://developer.mozilla.org/en-US/docs/Glossary/Forbidden%20request%20header) No

Syntax

Service-Worker: script

Directives

  • script
    • : A value indicating that this is a script. This is the only allowed directive for this header.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also