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

Unified Diff: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php

Issue 1332303002: Make registration.update() no longer force bypassing the HTTP cache (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Create a test file to split tests. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php
diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php
index 2486820c26c5f6483270a2d15f6527ec3ee11662..6a18bcafc846b1c0a1fbc0b04df470ebed5318b4 100644
--- a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php
+++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/update-worker.php
@@ -1,7 +1,7 @@
<?php
-// Force the browser to cache this script. update() should always bypass this
-// cache and fetch a new version.
-header('Cache-Control: max-age=86400');
+// update() does not bypass cache so set the max-age to 0 such that update()
+// can find a new version in the network.
+header('Cache-Control: max-age=0');
// Return a different script for each access.
header('Content-Type:application/javascript');
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698