Skip to content

Conversation

@yoshisatoyanagisawa
Copy link
Collaborator

@yoshisatoyanagisawa yoshisatoyanagisawa commented Sep 4, 2025

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 #1784 and the follow-up work in #1788.


Preview | Diff

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 w3c#1784 and the follow-up
work in w3c#1788.
@yoshisatoyanagisawa
Copy link
Collaborator Author

@annevk @mkruisselbrink @wanderview FYI.
@domenic @monica-ch Will you review this?

@wanderview
Copy link
Member

Looks reasonable to me, but my spec knowledge is a bit rusty.

Copy link
Contributor

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks substantively right to me.

yoshisatoyanagisawa and others added 2 commits September 8, 2025 10:53
Addresses review comments by:
- Clarifying the definition of "relevant name to cache map" and its relationship with `CacheStorage`.
- Removing the explicit ID and avoiding indirect `[=this=]` usage.
- Ensuring consistent syntax for `[=name to cache map=]` references.
@yoshisatoyanagisawa yoshisatoyanagisawa merged commit e3403ed into w3c:main Sep 10, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Sep 10, 2025
SHA: e3403ed
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this pull request Sep 10, 2025
SHA: e3403ed
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Sep 10, 2025
SHA: e3403ed
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants