commit | f47e86d3b1166586f5e2cae798edeaad37910979 | [log] [tgz] |
---|---|---|
author | Emma Haruka Iwao <yuryu@chromium.org> | Tue Nov 14 21:36:44 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 14 21:36:44 2017 |
tree | c67a7c9b97cd0904d5b7b9ccadd3b3fee29dcfca | |
parent | 411ba939f5619378bfcedf0eefc2d646a2573a86 [diff] |
Implement service worker updateViaCache interface in Blink updateViaCache is an attribute on ServiceWorkerRegistration that controls whether the browser cache (the HTTP cache) is used when performing an update check. Using Cache-control: no-cache or max-age: 0 on their service worker script resources has been a best practice among developers in order to detect script updates. The spec is updated to reflect this practice and now includes a new parameter, updateViaCache for cache control for service worker registrations. This patch implements the interface in blink. Intent to implement and ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/RwjXGTAbuuA/7Q3NPlJ4BAAJ Split from the original patch: https://chromium-review.googlesource.com/c/chromium/src/+/618076 Bug: 675540 Change-Id: Ia36b2a813f70ccc9ee1a99530926ab6e78d76357 Reviewed-on: https://chromium-review.googlesource.com/752703 Commit-Queue: Emma Haruka Iwao <yuryu@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#516435}
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 .