Spec-Zone.ru › HTTP

Headers: Service-Worker

Service-Worker header

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 request header 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

Specification
Service Workers Nightly>
# service-worker>

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
Service-Worker 38 16 44 25 11.1 38 44 25 11.3 3.0 38 11.3

See also

  • Service-Worker-Allowed header
  • Service worker API

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Service-Worker

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API