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

Unified Diff: content/browser/service_worker/service_worker_write_to_cache_job.cc

Issue 1381153004: Service Worker: Change the criteria for bumping the last update check time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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 | « content/browser/service_worker/service_worker_register_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_write_to_cache_job.cc
diff --git a/content/browser/service_worker/service_worker_write_to_cache_job.cc b/content/browser/service_worker/service_worker_write_to_cache_job.cc
index 09bcb88053f898503b6abb4f8954d8c6e71a1f72..b5477ab9a0195958a0be000ce5961f312dd8f918 100644
--- a/content/browser/service_worker/service_worker_write_to_cache_job.cc
+++ b/content/browser/service_worker/service_worker_write_to_cache_job.cc
@@ -341,8 +341,10 @@ void ServiceWorkerWriteToCacheJob::OnResponseStarted(
version_->SetMainScriptHttpResponseInfo(net_request_->response_info());
}
- if (net_request_->response_info().network_accessed)
+ if (net_request_->response_info().network_accessed &&
+ !(net_request_->response_info().was_cached)) {
version_->embedded_worker()->OnNetworkAccessedForScriptLoad();
+ }
http_info_.reset(new net::HttpResponseInfo(net_request_->response_info()));
scoped_refptr<HttpResponseInfoIOBuffer> info_buffer =
« no previous file with comments | « content/browser/service_worker/service_worker_register_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698