Re: [w3c/ServiceWorker] Support CacheStorage.match() options in SW Static Routing API cache source (Issue #1797)

yoshisatoyanagisawa left a comment (w3c/ServiceWorker#1797)

Behavior might be:
`"cache"`: look up the cache storage without any options.  Equivalent to `caches.match(request)`
`cacheName: "example"`: look up the cache "example" without any options. Equivalent to `caches.match(request, {cacheName: "example"})`
`cacheOptions: {ignoreSearch: true}`: look up the cache storage with the given option. Equivalent to `caches.match(request, {ignoreSearch: true})`
`cacheName: "example", cacheOptions: {ignoreSearch: true}`: look up the cache "example" with the given option. Equivalent to `caches.match(request, Object.assign({ignoreSearch: true}, {cacheName: "example"}))`

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

Message ID: <w3c/ServiceWorker/issues/1797/3430199770@github.com>

Received on Wednesday, 22 October 2025 02:05:45 UTC