Skip to content

Commit 1413c06

Browse files
committed
Make a subresource request trigger a 24-hour-checked update.
1 parent c446436 commit 1413c06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/service_worker/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3219,20 +3219,20 @@ <h1>Handle Fetch</h1>
32193219
<ol>
32203220
<li>If <var>eventCanceled</var> is true, return a <a href="https://fetch.spec.whatwg.org/#concept-network-error">network error</a> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
32213221
<li>Else, return null and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3222-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3222+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32233223
<li>Abort these steps.</li>
32243224
</ol>
32253225
</li>
32263226
<li>If <var>handleFetchFailed</var> is true, then:
32273227
<ol>
32283228
<li>Return a <a href="https://fetch.spec.whatwg.org/#concept-network-error">network error</a> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3229-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3229+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32303230
</ol>
32313231
</li>
32323232
<li>Else:
32333233
<ol>
32343234
<li>Return a <a href="https://fetch.spec.whatwg.org/#concept-response">response</a> represented by <var>response</var> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3235-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3235+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32363236
</ol>
32373237
</li>
32383238
</ol>

spec/service_worker_1/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,20 +3217,20 @@ <h1>Handle Fetch</h1>
32173217
<ol>
32183218
<li>If <var>eventCanceled</var> is true, return a <a href="https://fetch.spec.whatwg.org/#concept-network-error">network error</a> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
32193219
<li>Else, return null and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3220-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3220+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32213221
<li>Abort these steps.</li>
32223222
</ol>
32233223
</li>
32243224
<li>If <var>handleFetchFailed</var> is true, then:
32253225
<ol>
32263226
<li>Return a <a href="https://fetch.spec.whatwg.org/#concept-network-error">network error</a> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3227-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3227+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32283228
</ol>
32293229
</li>
32303230
<li>Else:
32313231
<ol>
32323232
<li>Return a <a href="https://fetch.spec.whatwg.org/#concept-response">response</a> represented by <var>response</var> and continue running these substeps <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel">in parallel</a>.</li>
3233-
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
3233+
<li>If <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, or <var>request</var> is a <a href="https://fetch.spec.whatwg.org/#subresource-request">subresource request</a> and the time difference in seconds calculated by the current time minus <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> is greater than 86400, invoke <a href="#soft-update-algorithm">Soft Update</a> algorithm, or its <a href="#dfn-processing-equivalence">equivalent</a>, with <var>registration</var>.</li>
32343234
</ol>
32353235
</li>
32363236
</ol>

0 commit comments

Comments
 (0)