w3c / w3c/ServiceWorker

Value of the Service-Worker request header

Open
#1,605 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
3.6k
Forks
324
Avg merge
14d 22h
Merged PRs (30d)
1

Description

Is it up to browsers to decide what value will be included in the Service-Worker request header when an HTTP request is made to fetch a service worker's script resource?

I've noted that some browsers use script as the value for this header, but I couldn't find this information in the spec.

I'm unsure if administrators should be looking for the Service-Worker: script header specifically to detect the registration of a service worker.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository file, test, or entry point. Start by comparing the Service-Worker request-header behavior described in the specification with the browser behavior reported here; done means documenting whether the header value is defined and whether Service-Worker: script is a reliable detection signal.

Written by the indexing model from the issue text.

Assessment

Tech stack
web-dev
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.