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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 1283273002: Service Worker: Change last update check location and HTTP cache bypass rule (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments. Created 5 years, 4 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: content/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index cfef416e1af4b5da726e611e489abeb3e291192e..b81a05bcb10b50a4cd5b643eeb8b1a4281216e2c 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -55,8 +55,8 @@ static const int kInvalidEmbeddedWorkerThreadId = -1;
static const int kInvalidServiceWorkerClientId = 0;
// The HTTP cache is bypassed for Service Worker scripts if the last network
-// fetch occurred over 24 hours ago.
-static const int kServiceWorkerScriptMaxCacheAgeInHours = 24;
+// fetch occurred over min(SW's max-age, 86400) seconds ago.
+static const int kServiceWorkerScriptMaxCacheAgeInSeconds = 86400;
// ServiceWorker provider type.
enum ServiceWorkerProviderType {

Powered by Google App Engine
This is Rietveld 408576698