Service-Worker
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 |
---|---|
Forbidden header name | No |
Syntax
http
Service-Worker: script
Directives
script
-
A value indicating that this is a script. This is the only allowed directive for this header.
Specifications
Specification |
---|
Service Workers # service-worker |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Service-Worker request header for logging service worker script resource requests. |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.