[w3c/ServiceWorker] Fetch service worker scripts with "no-cache" by default (#1020)

This introduces service worker registration's use cache field and its
related APIs: options.useCache to register method and
registration.useCache for ServiceWorkerRegistration objects. This
changes the default cache mode of fetching SW scripts to "no-cache".
After the change, 24 hours limit and job's force bypass cache flag rules
are still enforced. register() method's options value set to
{ useCache: true } re-enables the previous default behavior provided
before this change.

Fixes #893.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1020

-- Commit Summary --

  * Fetch service worker scripts with "no-cache" by default

-- File Changes --

    M docs/index.bs (58)
    M docs/index.html (270)
    M docs/v1/index.bs (43)
    M docs/v1/index.html (256)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1020.patch
https://github.com/w3c/ServiceWorker/pull/1020.diff

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

Received on Tuesday, 6 December 2016 05:39:50 UTC