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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php

Issue 1380323002: Make registration.update() no longer force bypassing the HTTP cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-served-from-cache-worker.php
new file mode 100644
index 0000000000000000000000000000000000000000..c137159423c6210a4f869f3287f3bbb553118296
--- /dev/null
+++ b/third_party/WebKit/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