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 = |