- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Mon, 12 Feb 2024 23:23:15 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1701/review/1877018322@github.com>
@yoshisatoyanagisawa commented on this pull request.
>
Note: From this point, the [=/service worker client=] starts to <a>use</a> its <a>active service worker</a>'s <a>containing service worker registration</a>.
1. Else if |request| is a <a>subresource request</a>, then:
1. If |client|'s <a>active service worker</a> is non-null, set |registration| to |client|'s <a>active service worker</a>'s <a>containing service worker registration</a>.
1. Else, return null.
1. Let |activeWorker| be |registration|'s <a>active worker</a>.
+ 1. If |activeWorker|'s [=service worker/list of router rules=] is [=list/is not empty=]:
+ 1. Let |source| be the result of running [=Get Router Source=] algorithm with |registration|'s <a>active worker</a> and |request|.
+ 1. If |source| is {{RouterSourceEnum/"network"}}, return null.
+ 1. Else if |source| is {{RouterSourceEnum/"cache"}}, or |source|["{{RouterSourceDict/cacheName}}"] [=map/exists=], then:
+ 1. [=map/For each=] |cacheName| → |cache| of the [=relevant name to cache map=]:
+ 1. If |source|["{{RouterSourceDict/cacheName}}"] [=map/exists=] and |source|["{{RouterSourceDict/cacheName}}"] does not match |cacheName|, [=continue=].
I followed https://w3c.github.io/ServiceWorker/#dom-cachestorage-match to write this "match".
And, yes, I suppose it [=string/is=].
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1701#discussion_r1487328059
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/ServiceWorker/pull/1701/review/1877018322@github.com>
Received on Tuesday, 13 February 2024 07:23:22 UTC