Re: [w3c/ServiceWorker] Add Request Soft Update algorithm for use by other specifications (PR #1847)

@monica-ch commented on this pull request.



> @@ -2928,6 +2928,24 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
       1. Invoke <a>Schedule Job</a> with |job|.
   </section>
 
+  <section algorithm>
+    <h3 id="request-soft-update-algorithm"><dfn export>Request Soft Update</dfn></h3>
+
+    This algorithm allows other specifications to request that the user agent check a [=/service worker registration=] for updates.
+
+      : Input
+      :: |registration|, a [=/service worker registration=]
+      :: |requestingStorageKey|, a [=/storage key=]
+      : Output
+      :: None
+
+      1. If |registration|'s [=service worker registration/storage key=] is not [=storage key/equal=] to |requestingStorageKey|, return.
+      1. The user agent *may* return.

Updated. The step now explicitly returns when the user agent decides to limit update-check frequency, and I moved the relevant rate-limiting and coalescing note directly below that step.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1847#discussion_r3982516348
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1847/review/5171145204@github.com>

Received on Thursday, 10 September 2026 19:02:02 UTC