Skip to content

Commit 621d412

Browse files
committed
Adjust the update timestamp bumping step in Update algorithm. Fixes #514.
1 parent 1384c07 commit 621d412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/service_worker/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,6 @@ <h1>Update</h1>
25252525
<li>Abort these steps.</li>
25262526
</ol>
25272527
</li>
2528-
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
25292528
<li><a href="https://fetch.spec.whatwg.org/#concept-header-extract-mime-type">Extract a MIME type</a> from the <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-header-list">header list</a>. If this MIME type (ignoring parameters) is not one of <code>text/javascript</code>, <code>application/x-javascript</code>, and <code>application/javascript</code>, then:
25302529
<ol>
25312530
<li>Reject <var>p</var> with a "<code><a href="http://heycam.github.io/webidl/#securityerror">SecurityError</a></code>" exception.</li>
@@ -2566,6 +2565,7 @@ <h1>Update</h1>
25662565
<li>Abort these steps.</li>
25672566
</ol>
25682567
</li>
2568+
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
25692569
<li>Set <var>newestWorker</var> to the result of running the <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
25702570
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a href="https://url.spec.whatwg.org/#concept-url-equals">equals</a> <var>registration</var>'s <a href="#dfn-registration-script-url">registering script url</a> with the <em>exclude fragments flag</em> set, and <var>response</var> is a byte-for-byte match with the script resource of <var>newestWorker</var>, then:
25712571
<ol>

spec/service_worker_1/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2523,7 +2523,6 @@ <h1>Update</h1>
25232523
<li>Abort these steps.</li>
25242524
</ol>
25252525
</li>
2526-
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
25272526
<li><a href="https://fetch.spec.whatwg.org/#concept-header-extract-mime-type">Extract a MIME type</a> from the <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-header-list">header list</a>. If this MIME type (ignoring parameters) is not one of <code>text/javascript</code>, <code>application/x-javascript</code>, and <code>application/javascript</code>, then:
25282527
<ol>
25292528
<li>Reject <var>p</var> with a "<code><a href="http://heycam.github.io/webidl/#securityerror">SecurityError</a></code>" exception.</li>
@@ -2564,6 +2563,7 @@ <h1>Update</h1>
25642563
<li>Abort these steps.</li>
25652564
</ol>
25662565
</li>
2566+
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
25672567
<li>Set <var>newestWorker</var> to the result of running the <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
25682568
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a href="https://url.spec.whatwg.org/#concept-url-equals">equals</a> <var>registration</var>'s <a href="#dfn-registration-script-url">registering script url</a> with the <em>exclude fragments flag</em> set, and <var>response</var> is a byte-for-byte match with the script resource of <var>newestWorker</var>, then:
25692569
<ol>

0 commit comments

Comments
 (0)