Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanded on the update() Note: #616

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/service_worker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ <h1><code>scope</code></h1>
<spec-section id="service-worker-registration-update">
<h1><code>update()</code></h1>

<p class="note"><code>update()</code> pings the server for an updated version of this script without consulting caches. This is conceptually the same operation that UA does maximum once per every 24 hours.</p>
<p class="note">When loading a registered service worker script, the UA normally checks the HTTP cache for an unexpired copy, falling back on network retrieval otherwise. <code>update()</code> will force the UA to consult the server updated script, ignoring the HTTP cache. <code>update()</code>'s behavior is conceptually the same as what the UA does a maximum once every 24 hours on its own, to prevent service worker scripts from being cached for longer than a day.</p>
<p><dfn id="service-worker-registration-update-method"><code>update()</code></dfn> method must run these steps or their <a href="#dfn-processing-equivalence">equivalent</a>:</p>
<spec-algorithm>
<ol>
Expand Down