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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-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
Index: LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php
diff --git a/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php b/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php
new file mode 100644
index 0000000000000000000000000000000000000000..c137159423c6210a4f869f3287f3bbb553118296
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php
@@ -0,0 +1,7 @@
+<?php
+// Set max-age to non-zero value so the next update will be served from cache.
+header('Cache-Control: max-age=3600');
+header('Content-Type:application/javascript');
+// Return a different script for each access.
+echo '// ' . microtime();
+?>

Powered by Google App Engine
This is Rietveld 408576698