- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Thu, 15 Feb 2024 17:11:43 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1701/review/1884153429@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=]. done. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1701#discussion_r1491846001 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1701/review/1884153429@github.com>
Received on Friday, 16 February 2024 01:11:47 UTC