Add CacheStorage controlled fetch broker - #303
Merged
Merged
Conversation
This was referenced Sep 17, 2026
wieslawsoltes
force-pushed
the
feature/cache-storage-fetch-broker-266
branch
from
September 17, 2026 17:59
22c095f to
0267d60
Compare
wieslawsoltes
force-pushed
the
feature/cache-storage-fetch-broker-266
branch
from
September 17, 2026 18:05
0267d60 to
bd1b872
Compare
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A scope-controlled Code OSS webview can register and activate its Service Worker, but resource requests cannot reach its
fetchlistener and the worker has noCacheStorage. The unchanged worker blocks first oncaches.open(...).match(event.request)before it can request a resource from its client.Result
CacheStorage/Cachebrands with empty-match, request-keyed put/match/delete/keys, cloned responses, 256-entry/64 MiB limits, and illegal constructors/receiver checks.fetch()to the isolated workerFetchEvent, preserving status, headers, body, fallthrough to the host loader, rejection, client generation retirement, unregister, and shutdown behavior.Part of #266. This lower stack entry intentionally leaves WritableStream/TransformStream fallback, parser/image/style interception, range/cache validators, and unchanged Markdown product acceptance to dependent work.
Validation
service-worker-resource-plane: 100 cycles, p95 0.192 ms; V8 heap 1,144,632 -> 1,144,632 bytes; peak RSS 38,207,488 -> 49,184,768 bytes. The same gate rejects 65 logical MiB before allocating the combined response.bd1b872eis conflict-free on main3d143240; the only Implement effective CSS property cascade semantics #305 path overlap is the additive component-profile ledger. Cumulative-top revalidation passes the bootstrap/syntax/build gates, the native contract (3/3, 69 ms), and 100 cycles (p95 0.210 ms; heap 1,161,232 -> 1,161,232 bytes; peak RSS 38,207,488 -> 49,266,688 bytes).