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
<li>Let <var>newestWorker</var> be the result of running <ahref="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as its argument.</li>
423
423
<li>If <var>newestWorker</var> is null, return a <ahref="http://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects">promise</a> rejected with an "<code><ahref="http://heycam.github.io/webidl/#invalidstateerror">InvalidStateError</a></code>" exception.</li>
424
424
<li>Set <var>registration</var>'s <ahref="#dfn-registration-script-url">registering script url</a> to <var>newestWorker</var>'s <ahref="#dfn-script-url">script url</a>.</li>
425
-
<li>Let <var>p</var> be the result of running <ahref="#update-algorithm">Update</a> algorithm, or its <ahref="#dfn-processing-equivalence">equivalent</a>, passing the <ahref="#dfn-service-worker-registration-interface-client">service worker client</a><var>client</var> and <var>registration</var> as the arguments.</li>
425
+
<li>Let <var>p</var> be the result of running <ahref="#update-algorithm">Update</a> algorithm, or its <ahref="#dfn-processing-equivalence">equivalent</a>, passing the <ahref="#dfn-service-worker-registration-interface-client">service worker client</a><var>client</var> and <var>registration</var> as the arguments with <em>force bypass cache flag</em> set.</li>
426
426
<li>Return the result of <ahref="http://www.w3.org/2001/tag/doc/promises-guide#transforming-by">transforming</a><var>p</var> with:
427
427
<ol>
428
428
<li>A fulfillment handler that returns undefined.</li>
@@ -2453,6 +2453,7 @@ <h1>Update</h1>
2453
2453
<dt>Input</dt>
2454
2454
<dd><var>client</var>, a <ahref="#dfn-service-worker-client">service worker client</a></dd>
2455
2455
<dd><var>registration</var>, a <ahref="#dfn-service-worker-registration">service worker registration</a></dd>
2456
+
<dd><em>force bypass cache flag</em>, an optional flag unset by default</dd>
2456
2457
<dt>Output</dt>
2457
2458
<dd><var>promise</var>, a <ahref="http://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects">promise</a></dd>
2458
2459
</dl>
@@ -2493,7 +2494,7 @@ <h1>Update</h1>
2493
2494
<li>Set <var>newestWorker</var> to the result of running <ahref="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
2494
2495
<li>If <var>newestWorker</var> is not null and <var>registration</var>'s <ahref="#dfn-last-update-time">last update time</a> is not null, then:
2495
2496
<ol>
2496
-
<li>If the time difference in seconds calculated by the current time minus <var>registration</var>'s <ahref="#dfn-last-update-time">last update time</a> is greater than <var>newestWorker</var>'s <ahref="#dfn-max-age">max age</a>, set <var>r</var>'s <ahref="https://fetch.spec.whatwg.org/#concept-request-cache-mode">cache mode</a> to "<code>reload</code>".</li>
2497
+
<li>If the time difference in seconds calculated by the current time minus <var>registration</var>'s <ahref="#dfn-last-update-time">last update time</a> is greater than <var>newestWorker</var>'s <ahref="#dfn-max-age">max age</a>, or <em>force bypass cache flag</em> is set, set <var>r</var>'s <ahref="https://fetch.spec.whatwg.org/#concept-request-cache-mode">cache mode</a> to "<code>reload</code>".</li>
2497
2498
</ol>
2498
2499
</li>
2499
2500
<li>Let <var>response</var> be the result of running <ahref="https://fetch.spec.whatwg.org/#concept-fetch">fetch</a> using <var>r</var>.</li>
@@ -2601,6 +2602,7 @@ <h1>Soft Update</h1>
2601
2602
<dl>
2602
2603
<dt>Input</dt>
2603
2604
<dd><var>registration</var>, a <ahref="#dfn-service-worker-registration">service worker registration</a></dd>
2605
+
<dd><em>force bypass cache flag</em>, an optional flag unset by default</dd>
2604
2606
<dt>Output</dt>
2605
2607
<dd>None</dd>
2606
2608
</dl>
@@ -2611,7 +2613,7 @@ <h1>Soft Update</h1>
2611
2613
<li>Let <var>newestWorker</var> be the result of running <ahref="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as its argument.</li>
2612
2614
<li>If <var>newestWorker</var> is null, abort these steps.</li>
2613
2615
<li>Set <var>registration</var>'s <ahref="#dfn-registration-script-url">registering script url</a> to <var>newestWorker</var>'s <ahref="#dfn-script-url">script url</a>.</li>
2614
-
<li>Invoke <ahref="#update-algorithm">Update</a> algorithm, or its <ahref="#dfn-processing-equivalence">equivalent</a>, with<var>client</var>, <var>registration</var> as its argument.</li>
2616
+
<li>Invoke <ahref="#update-algorithm">Update</a> algorithm, or its <ahref="#dfn-processing-equivalence">equivalent</a>, passing<var>client</var> and <var>registration</var> as its argument with <em>force bypass cache flag</em> set only if its own <em>force bypass cache flag</em> is set.</li>
0 commit comments