From 8686067179dc7f6cf3dc165bc2ec86cf3949f6cc Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Wed, 10 Sep 2025 01:52:57 +0000 Subject: [PATCH 1/2] Editorial: remove unnecessary CacheStorage global object definition This patch removes the specific definition of the global object for CacheStorage and replaces the incorrect and redundant reference to the environment settings object with a more direct reference to the relevant settings object. Fixes #1791 --- docs/index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index 3bbbe97f..03ef42d2 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -1952,7 +1952,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ A name to cache map is an ordered map whose [=map/entry=] consists of a [=map/key=] (a string that represents the name of a [=request response list=]) and a [=map/value=] (a [=request response list=]). - The relevant name to cache map for a {{CacheStorage}} object is the [=name to cache map=] associated with the result of running [=obtain a local storage bottle map=] with the object's associated [=CacheStorage/global object=]'s [=environment settings object=] and "caches". + The relevant name to cache map for a {{CacheStorage}} object is the [=name to cache map=] associated with the result of running [=obtain a local storage bottle map=] with the object's [=relevant settings object=] and "caches".
@@ -2258,9 +2258,9 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ Note: {{CacheStorage}} interface is designed to largely conform to ECMAScript 6 Map objects but entirely async, and with additional convenience methods. The methods, clear, forEach, entries and values, are intentionally excluded from the scope of the first version resorting to the ongoing discussion about the async iteration by TC39. - The user agent *must* create a {{CacheStorage}} object when a {{Window}} object or a {{WorkerGlobalScope}} object is created and associate it with that global object. + The user agent *must* create a {{CacheStorage}} object when a {{Window}} object or a {{WorkerGlobalScope}} object is created and associate it with that [=global object=]. - A {{CacheStorage}} object represents the [=name to cache map=] associated with the result of running [=obtain a local storage bottle map=] with its associated [=CacheStorage/global object=]'s [=environment settings object=] and "caches". Multiple separate objects implementing the {{CacheStorage}} interface across documents and workers can all be associated with the same [=name to cache map=] simultaneously. + A {{CacheStorage}} object represents the [=name to cache map=] associated with the result of running [=obtain a local storage bottle map=] with its [=relevant settings object=] and "caches". Multiple separate objects implementing the {{CacheStorage}} interface across documents and workers can all be associated with the same [=name to cache map=] simultaneously.

{{CacheStorage/match(request, options)}}

From 95b0bbe193c447afdc58da2eeec00d6c7826a286 Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Wed, 10 Sep 2025 16:10:30 +0900 Subject: [PATCH 2/2] Update docs/index.bs Addressed the comment. Co-authored-by: Domenic Denicola --- docs/index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.bs b/docs/index.bs index 03ef42d2..658fd348 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -2258,7 +2258,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ Note: {{CacheStorage}} interface is designed to largely conform to ECMAScript 6 Map objects but entirely async, and with additional convenience methods. The methods, clear, forEach, entries and values, are intentionally excluded from the scope of the first version resorting to the ongoing discussion about the async iteration by TC39. - The user agent *must* create a {{CacheStorage}} object when a {{Window}} object or a {{WorkerGlobalScope}} object is created and associate it with that [=global object=]. + The user agent *must* create a {{CacheStorage}} object when a {{Window}} object or a {{WorkerGlobalScope}} object is created. A {{CacheStorage}} object represents the [=name to cache map=] associated with the result of running [=obtain a local storage bottle map=] with its [=relevant settings object=] and "caches". Multiple separate objects implementing the {{CacheStorage}} interface across documents and workers can all be associated with the same [=name to cache map=] simultaneously.