Service-Worker header
The HTTPService-Workerrequest 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 request header | No |
In this article
Syntax
http
Service-Worker: scriptDirectives
scriptA value indicating that this is a script.This is the only allowed directive for this header.
Specifications
| Specification |
|---|
| Service Workers Nightly> # service-worker> |