Re: [w3c/ServiceWorker] What does "the registration’s storage key’s name to cache map" mean? (Issue #1784)

wanderview left a comment (w3c/ServiceWorker#1784)

> 1. Regarding [@wanderview](https://github.com/wanderview)'s suggestion "Can you not use request's reserved client as the environment?", I just wondered if it is guaranteed to be non-null.  Note that we do not assert non-null for the sub resource case.

Sorry, I missed this question from a month ago.  I believe the reserved client will only be set for document navigations and top level worker scripts.  So its only really relevant when selecting and/or spinning up the service worker for a non-subresource request.

For subresource requests, however, the request should have a valid client set which can be used to get the storage key.  Or the service worker global's environment settings object, etc.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1784#issuecomment-3253897376
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1784/3253897376@github.com>

Received on Thursday, 4 September 2025 14:04:45 UTC