diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 3a292ae7..577a59b8 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -422,7 +422,7 @@

update()

  • Let newestWorker be the result of running Get Newest Worker algorithm passing registration as its argument.
  • If newestWorker is null, return a promise rejected with an "InvalidStateError" exception.
  • Set registration's registering script url to newestWorker's script url.
  • -
  • Let p be the result of running Update algorithm, or its equivalent, passing the service worker client client and registration as the arguments.
  • +
  • Let p be the result of running Update algorithm, or its equivalent, passing the service worker client client and registration as the arguments with force bypass cache flag set.
  • Return the result of transforming p with:
    1. A fulfillment handler that returns undefined.
    2. @@ -2453,6 +2453,7 @@

      Update

      Input
      client, a service worker client
      registration, a service worker registration
      +
      force bypass cache flag, an optional flag unset by default
      Output
      promise, a promise
      @@ -2493,7 +2494,7 @@

      Update

    3. Set newestWorker to the result of running Get Newest Worker algorithm passing registration as the argument.
    4. If newestWorker is not null and registration's last update time is not null, then:
        -
      1. If the time difference in seconds calculated by the current time minus registration's last update time is greater than newestWorker's max age, set r's cache mode to "reload".
      2. +
      3. If the time difference in seconds calculated by the current time minus registration's last update time is greater than newestWorker's max age, or force bypass cache flag is set, set r's cache mode to "reload".
    5. Let response be the result of running fetch using r.
    6. @@ -2601,6 +2602,7 @@

      Soft Update

      Input
      registration, a service worker registration
      +
      force bypass cache flag, an optional flag unset by default
      Output
      None
      @@ -2611,7 +2613,7 @@

      Soft Update

    7. Let newestWorker be the result of running Get Newest Worker algorithm passing registration as its argument.
    8. If newestWorker is null, abort these steps.
    9. Set registration's registering script url to newestWorker's script url.
    10. -
    11. Invoke Update algorithm, or its equivalent, with client, registration as its argument.
    12. +
    13. Invoke Update algorithm, or its equivalent, passing client and registration as its argument with force bypass cache flag set only if its own force bypass cache flag is set.