You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Assert: |request|'s [=request/destination=] is not "<code>serviceworker</code>".
2873
2873
1. If |request| is a <a>potential-navigation-or-subresource request</a>, then:
2874
2874
1. Return null.
2875
+
1. Let |activeWorker| be |registration|'s <a>active worker</a>.
2875
2876
1. Else if |request| is a <a>non-subresource request</a>, then:
2876
2877
2877
2878
Note: If the non-subresource request is under the scope of a service worker registration, application cache is completely bypassed regardless of whether the non-subresource request uses the service worker registration.
1. Set |registration| to the result of running <a>Match Service Worker Registration</a> algorithm passing |request|'s [=request/url=] as the argument.
2885
2886
1. If |registration| is null or |registration|'s <a>active worker</a> is null, return null.
2886
2887
1. If |request|'s [=request/destination=] is not {{RequestDestination/"report"}}, set |reservedClient|'s <a>active service worker</a> to |registration|'s <a>active worker</a>.
2887
-
1. If |request| is a [=navigation request=] and |registration|'s [=navigation preload enabled flag=] is set, and |request|'s [=request/method=] is \`<code>GET</code>\`, then:
2888
+
1. If |request| is a [=navigation request=] and |registration|'s [=navigation preload enabled flag=] is set, and |request|'s [=request/method=] is \`<code>GET</code>\`, and |activeWorker|'s <a>set of event types to handle</a> contains <code>fetch</code>, then:
2889
+
2890
+
Note: If the above is true except |activeWorker|'s <a>set of event types to handle</a> **does not** contain <code>fetch</code>, then the user agent may wish to show a console warning, as the developer's intent isn't clear.
2891
+
2888
2892
1. Let |preloadRequest| be the result of [=request/cloning=] the request |request|.
2889
2893
1. Let |preloadRequestHeaders| be |preloadRequest|'s [=request/header list=].
2890
2894
1. Let |preloadResponseObject| be a new {{Response}} object associated with a new {{Headers}} object whose [=guard=] is "`immutable`".
1. Else if |request| is a <a>subresource request</a>, then:
2906
2910
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>.
2907
2911
1. Else, return null.
2908
-
1. Let |activeWorker| be |registration|'s <a>active worker</a>.
2909
2912
1. If |activeWorker|'s <a>set of event types to handle</a> does not contain <code>fetch</code>, then:
2910
2913
1. Return null and continue running these steps <a>in parallel</a>.
2911
2914
1. If |request| is a <a>non-subresource request</a>, or |request| is a <a>subresource request</a> and the time difference in seconds calculated by the current time minus |registration|'s <a>last update check time</a> is greater than 86400, invoke <a>Soft Update</a> algorithm with |registration|.
0 commit comments