Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 1332303002: Make registration.update() no longer force bypassing the HTTP cache (1/2) (Closed)

Created:
5 years, 3 months ago by jungkees
Modified:
5 years, 2 months ago
CC:
blink-reviews, jsbell, tzik, serviceworker-reviews, dglazkov+blink, kinuko+serviceworker, horo
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make registration.update() no longer force bypassing the HTTP cache (1/2) As per the last f2f and the follow-up discussion, ServiceWorkerRegistration.update() should not always bypass the HTTP cache but bypass it only when 24 hours have passed since the last update check. So, this patch involves a change in the behavior of ServiceWorkerRegistration.update(). Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-update Spec discussion: https://github.com/slightlyoff/ServiceWorker/issues/514#issuecomment-130664373 Companion CL (Chromium): https://codereview.chromium.org/1339623002/ BUG=530540

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a test case for update() served from cache. #

Patch Set 3 : Remove a trailing whitespace. #

Total comments: 2

Patch Set 4 : Create a test file to split tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -3 lines) Patch
M LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/update-served-from-cache.html View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
jungkees
This patch is split from https://codereview.chromium.org/1283273002/, and the part that addresses registration.update()'s behavior change. (See ...
5 years, 3 months ago (2015-09-11 11:44:24 UTC) #2
zino
On 2015/09/11 11:44:24, jungkees wrote: > This patch is split from https://codereview.chromium.org/1283273002/, and the > ...
5 years, 3 months ago (2015-09-11 11:49:35 UTC) #3
zino
Sorry, non-owner l-g-t-m. Please wait for owner's review.
5 years, 3 months ago (2015-09-11 11:50:40 UTC) #4
jungkees
Thanks for the peer review, zino@. OWERs, PTAL
5 years, 3 months ago (2015-09-11 11:56:45 UTC) #6
falken
Thanks for splitting these up into focused CLs. https://codereview.chromium.org/1332303002/diff/1/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php File LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php (right): https://codereview.chromium.org/1332303002/diff/1/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php#newcode3 LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php:3: header('Cache-Control: ...
5 years, 3 months ago (2015-09-11 12:35:26 UTC) #7
jungkees
I uploaded a new snapshot having addressed the comment. PTAL https://codereview.chromium.org/1332303002/diff/1/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php File LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php (right): https://codereview.chromium.org/1332303002/diff/1/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php#newcode3 ...
5 years, 3 months ago (2015-09-15 12:09:17 UTC) #8
jungkees
falken@, nhiroki@, could you take a look?
5 years, 2 months ago (2015-10-01 05:19:36 UTC) #9
falken
I think I'd prefer this test be broken up into more targeted ones, rather than ...
5 years, 2 months ago (2015-10-01 14:58:04 UTC) #10
jungkees
Alright. Does the following plan make sense? On 2015/10/01 14:58:04, falken wrote: > > Is ...
5 years, 2 months ago (2015-10-02 02:08:25 UTC) #11
falken
On 2015/10/02 02:08:25, jungkees wrote: > Alright. Does the following plan make sense? > > ...
5 years, 2 months ago (2015-10-02 02:09:54 UTC) #12
jungkees
I just uploaded a new snapshot having addressed the discussion we had. PTAL
5 years, 2 months ago (2015-10-02 06:11:25 UTC) #13
falken
lgtm, thanks! As for landing, Blink and Chromium repos are no longer separate. So you ...
5 years, 2 months ago (2015-10-02 07:25:55 UTC) #14
jungkees
5 years, 2 months ago (2015-10-03 03:39:19 UTC) #15
Message was sent while issue was closed.
This CL has been merged to and landed as part of
https://codereview.chromium.org/1380323002/.

Powered by Google App Engine
This is Rietveld 408576698