Back to Content

Service-Worker header

files/en-us/web/http/reference/headers/service-worker/index.md

latest865 B
Original Source

The HTTP Service-Worker {{Glossary("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.

<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>{{Glossary("Request header")}}</td> </tr> <tr> <th scope="row">{{Glossary("Forbidden request header")}}</th> <td>No</td> </tr> </tbody> </table>

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

{{Specifications}}

Browser compatibility

{{Compat}}

See also