service worker: Enable ServiceWorkerRegistration#updateViaCache by default.

This ships updateViaCache which controls whether the browser cache is
used for service worker update checks. Importantly, this changes the
default behavior, since the default value of updateViaCache is 'imports',
which skips the browser cache for the main service worker script and
uses it only for import scripts. However, actually checking import
script contents for updates is not yet implemented, so effectively the
default is 'none': https://crbug.com/648295.

Thanks to Emma Haruka Iwao (yuryu@) for doing the bulk of the
implementation work.

Intent to ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/RwjXGTAbuuA/7Q3NPlJ4BAAJ

Bug: 675540
Change-Id: Ifdbaaa76b028e07ac26b9db28d9c59c7b8bd055f
Reviewed-on: https://chromium-review.googlesource.com/1056756
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558639}
9 files changed