diff --git a/docs/index.bs b/docs/index.bs index 2fb44bdc..5a7fd11e 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -3241,7 +3241,12 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Else if |source| is {{RouterSourceEnum/"cache"}}, or |source|["{{RouterSourceDict/cacheName}}"] [=map/exists=], then: 1. If |shouldSoftUpdate| is true, then [=in parallel=] run the [=Soft Update=] algorithm with |registration|. 1. Set |timingInfo|’s [=service worker timing info/worker cache lookup start=] to the [=coarsened shared current time=] given |useHighResPerformanceTimers|. - 1. Let |caches| be the result of running [=obtain a local storage bottle map=] with |reservedClient| and "caches". + 1. Let |environment| be null. + 1. If |request| is a non-subresource request, then: + 1. Set |environment| to |reservedClient|. + 1. Else: + 1. Set |environment| to |client|. + 1. Let |caches| be the result of running [=obtain a local storage bottle map=] with |environment| and "caches". 1. [=map/For each=] |cacheName| → |cache| of |caches|. 1. If |source|["{{RouterSourceDict/cacheName}}"] [=map/exists=] and |source|["{{RouterSourceDict/cacheName}}"] [=string/is=] not |cacheName|, [=continue=]. 1. Let |requestResponses| be the result of running [=Query Cache=] with |request|, a new {{CacheQueryOptions}}, and |cache|.