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

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

Issue 1177563005: ServiceWorker: Implement ServiceWorkerRegistration.update() (3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@implement_update_1
Patch Set: incorporate falken@'s comments Created 5 years, 6 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-worker.php
diff --git a/LayoutTests/http/tests/serviceworker/resources/update-worker.php b/LayoutTests/http/tests/serviceworker/resources/update-worker.php
new file mode 100644
index 0000000000000000000000000000000000000000..e7e798f34cf1241820347fb3320e73e326ed2c81
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/update-worker.php
@@ -0,0 +1,9 @@
+<?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');
+
+// Return a different script for each access.
+header('Content-Type:application/javascript');
+echo '// ' . microtime()
+?>

Powered by Google App Engine
This is Rietveld 408576698