[w3c/ServiceWorker] Fix: Align Cache API definitions with Storage spec (PR #1789)

This commit clarifies how the Cache API interacts with the underlying storage mechanism, resolving ambiguity that stemmed from previous specification language.

Key changes:
- Removes the direct association between "storage key" and "name to cache map".
- Defines "relevant name to cache map" as being retrieved via the `obtain a local storage bottle map` algorithm from the Storage specification, ensuring alignment.
- Updates the definition of `CacheStorage` to represent the `name to cache map` associated with its `environment settings object`, rather than the `origin`.

This makes the relationship between the ServiceWorker Cache API and the Storage specification explicit and consistent, addressing the core issue raised in https://github.com/w3c/ServiceWorker/issues/1784 and the follow-up work in https://github.com/w3c/ServiceWorker/issues/1788.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/yoshisatoyanagisawa/ServiceWorker/pull/1789.html" title="Last updated on Sep 4, 2025, 5:52 AM UTC (dc27a19)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1789/953b6d3...yoshisatoyanagisawa:dc27a19.html" title="Last updated on Sep 4, 2025, 5:52 AM UTC (dc27a19)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1789

-- Commit Summary --

  * Fix: Align Cache API definitions with Storage spec

-- File Changes --

    M docs/index.bs (6)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1789.patch
https://github.com/w3c/ServiceWorker/pull/1789.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1789
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1789@github.com>

Received on Thursday, 4 September 2025 05:53:24 UTC