commit | 04f0f00fed84e150e24519510119424b9fbd41f3 | [log] [tgz] |
---|---|---|
author | Emma Haruka Iwao <yuryu@chromium.org> | Tue Jan 23 16:07:32 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 23 16:07:32 2018 |
tree | b6a1b1a0dc83e97ef7bf43413b24b62ab4349244 | |
parent | 97b6d97173a5445ac037604e0435759676f2d275 [diff] |
Implement updateViaCache in service workers updateViaCache is an attribute on ServiceWorkerRegistration that controls whether the browser cache (the HTTP cache) is used when performing an update check. This patch persists the updateViaCache value into service worker registration storage, and makes the service worker update check take the value into account. Since the default value of updateViaCache is 'imports', this makes it so the update check bypasses the cache for the main script by default. Intent to implement and ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/RwjXGTAbuuA/7Q3NPlJ4BAAJ Migrated from original Rietveld codereview: https://codereview.chromium.org/2771823002/ Bug: 675540 Change-Id: Ib8efcce0220d394ee254ff221bb844eccf596b51 Reviewed-on: https://chromium-review.googlesource.com/618076 Commit-Queue: Emma Haruka Iwao <yuryu@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#531252}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .