|  | 
| 3822 | 3822 |                       "html": "<p>Set <var>timingInfo</var>’s <a data-link-type=\"dfn\" href=\"https://w3c.github.io/ServiceWorker/#service-worker-timing-info-worker-cache-lookup-start\" id=\"ref-for-service-worker-timing-info-worker-cache-lookup-start\">worker cache lookup start</a> to the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/hr-time/#dfn-coarsened-shared-current-time\" id=\"ref-for-dfn-coarsened-shared-current-time①\">coarsened shared current time</a> given <var>useHighResPerformanceTimers</var>.</p>" | 
| 3823 | 3823 |                     }, | 
| 3824 | 3824 |                     { | 
| 3825 |  | -                      "html": "<p>Let <var>caches</var> be the result of running <a data-link-type=\"dfn\" href=\"https://storage.spec.whatwg.org/#obtain-a-local-storage-bottle-map\" id=\"ref-for-obtain-a-local-storage-bottle-map\">obtain a local storage bottle map</a> with <var>reservedClient</var> and \"<code>caches</code>\".</p>" | 
|  | 3825 | +                      "html": "<p>Let <var>environment</var> be null.</p>" | 
|  | 3826 | +                    }, | 
|  | 3827 | +                    { | 
|  | 3828 | +                      "html": "If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request②\">non-subresource request</a>, then:", | 
|  | 3829 | +                      "rationale": "set", | 
|  | 3830 | +                      "steps": [ | 
|  | 3831 | +                        { | 
|  | 3832 | +                          "html": "<p>Set <var>environment</var> to <var>reservedClient</var>.</p>" | 
|  | 3833 | +                        } | 
|  | 3834 | +                      ] | 
|  | 3835 | +                    }, | 
|  | 3836 | +                    { | 
|  | 3837 | +                      "html": "Else:", | 
|  | 3838 | +                      "rationale": "set", | 
|  | 3839 | +                      "steps": [ | 
|  | 3840 | +                        { | 
|  | 3841 | +                          "html": "<p>Set <var>environment</var> to <var>client</var>.</p>" | 
|  | 3842 | +                        } | 
|  | 3843 | +                      ] | 
|  | 3844 | +                    }, | 
|  | 3845 | +                    { | 
|  | 3846 | +                      "html": "<p>Let <var>caches</var> be the result of running <a data-link-type=\"dfn\" href=\"https://storage.spec.whatwg.org/#obtain-a-local-storage-bottle-map\" id=\"ref-for-obtain-a-local-storage-bottle-map\">obtain a local storage bottle map</a> with <var>environment</var> and \"<code>caches</code>\".</p>" | 
| 3826 | 3847 |                     }, | 
| 3827 | 3848 |                     { | 
| 3828 | 3849 |                       "html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-iterate\" id=\"ref-for-map-iterate⑥\">For each</a> <var>cacheName</var> → <var>cache</var> of <var>caches</var>.", | 
|  | 
| 4203 | 4224 |           ] | 
| 4204 | 4225 |         }, | 
| 4205 | 4226 |         { | 
| 4206 |  | -          "html": "<p>Let <var>shouldSoftUpdate</var> be true if any of the following are true, and false otherwise:</p>\n       <ul>\n        <li data-md=\"\">\n         <p><var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request②\">non-subresource request</a>.</p>\n        </li><li data-md=\"\">\n         <p><var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#subresource-request\" id=\"ref-for-subresource-request②\">subresource request</a> and <var>registration</var> is <a data-link-type=\"dfn\" href=\"https://w3c.github.io/ServiceWorker/#service-worker-registration-stale\" id=\"ref-for-service-worker-registration-stale④\">stale</a>.</p>\n       </li></ul>" | 
|  | 4227 | +          "html": "<p>Let <var>shouldSoftUpdate</var> be true if any of the following are true, and false otherwise:</p>\n       <ul>\n        <li data-md=\"\">\n         <p><var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request③\">non-subresource request</a>.</p>\n        </li><li data-md=\"\">\n         <p><var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#subresource-request\" id=\"ref-for-subresource-request②\">subresource request</a> and <var>registration</var> is <a data-link-type=\"dfn\" href=\"https://w3c.github.io/ServiceWorker/#service-worker-registration-stale\" id=\"ref-for-service-worker-registration-stale④\">stale</a>.</p>\n       </li></ul>" | 
| 4207 | 4228 |         }, | 
| 4208 | 4229 |         { | 
| 4209 | 4230 |           "html": "If the result of running the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/ServiceWorker/#should-skip-event\" id=\"ref-for-should-skip-event③\">Should Skip Event</a> algorithm with \"fetch\" and <var>activeWorker</var> is true, then:", | 
|  | 
| 4295 | 4316 |                   "html": "<p>Initialize <var>e</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/ServiceWorker/#dom-fetchevent-clientid\" id=\"ref-for-dom-fetchevent-clientid②\">clientId</a></code> attribute to <var>client</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-id\" id=\"ref-for-concept-environment-id③\">id</a>.</p>" | 
| 4296 | 4317 |                 }, | 
| 4297 | 4318 |                 { | 
| 4298 |  | -                  "html": "<p>If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request③\">non-subresource request</a> and <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-destination\" id=\"ref-for-concept-request-destination⑤\">destination</a> is not <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://fetch.spec.whatwg.org/#dom-requestdestination-report\" id=\"ref-for-dom-requestdestination-report①\">\"report\"</a></code>, initialize <var>e</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/ServiceWorker/#dom-fetchevent-resultingclientid\" id=\"ref-for-dom-fetchevent-resultingclientid②\">resultingClientId</a></code> attribute to <var>reservedClient</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-id\" id=\"ref-for-concept-environment-id④\">id</a>, and to the empty string otherwise.</p>" | 
|  | 4319 | +                  "html": "<p>If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request④\">non-subresource request</a> and <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-destination\" id=\"ref-for-concept-request-destination⑤\">destination</a> is not <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://fetch.spec.whatwg.org/#dom-requestdestination-report\" id=\"ref-for-dom-requestdestination-report①\">\"report\"</a></code>, initialize <var>e</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/ServiceWorker/#dom-fetchevent-resultingclientid\" id=\"ref-for-dom-fetchevent-resultingclientid②\">resultingClientId</a></code> attribute to <var>reservedClient</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-id\" id=\"ref-for-concept-environment-id④\">id</a>, and to the empty string otherwise.</p>" | 
| 4299 | 4320 |                 }, | 
| 4300 | 4321 |                 { | 
| 4301 | 4322 |                   "html": "<p>If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#navigation-request\" id=\"ref-for-navigation-request②\">navigation request</a>, initialize <var>e</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/ServiceWorker/#dom-fetchevent-replacesclientid\" id=\"ref-for-dom-fetchevent-replacesclientid②\">replacesClientId</a></code> attribute to <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-replaces-client-id\" id=\"ref-for-concept-request-replaces-client-id\">replaces client id</a>, and to the empty string otherwise.</p>" | 
|  | 
| 5753 | 5774 |           "html": "<p>Let <var>registration</var> be null.</p>" | 
| 5754 | 5775 |         }, | 
| 5755 | 5776 |         { | 
| 5756 |  | -          "html": "If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request④\">non-subresource request</a>, then:", | 
|  | 5777 | +          "html": "If <var>request</var> is a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#non-subresource-request\" id=\"ref-for-non-subresource-request⑤\">non-subresource request</a>, then:", | 
| 5757 | 5778 |           "rationale": "if", | 
| 5758 | 5779 |           "steps": [ | 
| 5759 | 5780 |             { | 
|  | 
0 commit comments