DescriptionService Worker: Change last update check location and HTTP cache bypass rule (1/2)
As per the last f2f and the follow-up discussion, the registration's last update
check time should be updated only when the script load request actually accessed
network and received response without a network error. The time stamp should be
updated regardless of whether the installation of the fetched resource succeeds
or fails.
This patch involves the following behavior changes:
1. Before: The last update check time was not updated when the installation of
the fetched resouce fails.
After: The last update check time is updated regardless of the result of the
installation.
2. Before: registration.update() always bypassed HTTP cache.
After: registration.update() no longer forces bypassing the HTTP cache but
bypasses it only when 24 hours have passed since the last update check, as
per spec.
Spec: https://github.com/slightlyoff/ServiceWorker/commit/569863f3acd0f5d79beab9d8c63210b8286ee507
Spec discussion: https://github.com/slightlyoff/ServiceWorker/issues/514#issuecomment-135641718
Companion CL (Chromium): https://codereview.chromium.org/1283273002/
BUG=520068
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|