Service worker basics and lifecycle documentation could be improved

NEW
Unassigned

Status

2 years ago
2 years ago

People

(Reporter: wbamberg, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
I needed to understand the service worker lifecycle. I found the MDN docs:
https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers to be less useful than the Google docs: https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/lifecycle.

In particular, I thought the Google page was good at:
* explaining why the lifecycle is the way it is (for example, to ensure that a single page is controlled by the same service worker for its whole lifetime)
* defining terms like "client" and "scope" and "control" explicitly and up-front
You need to log in before you can comment on or make changes to this bug.