From 049817c5a71c0d0a05badba85fbdde8db3b070fa Mon Sep 17 00:00:00 2001 From: Gregory Terzian Date: Wed, 19 Jun 2019 05:25:32 -0700 Subject: [PATCH] http-cache: remove double-store of resources --- components/net/http_loader.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 6574623232d..e0522f633be 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -1382,12 +1382,7 @@ fn http_network_fetch( // Step 13 // TODO this step isn't possible yet (CSP) - // Step 14 - if !response.is_network_error() && request.cache_mode != CacheMode::NoStore { - if let Ok(mut http_cache) = context.state.http_cache.write() { - http_cache.store(&request, &response); - } - } + // Step 14, update the cached response, done via the shared response body. // TODO this step isn't possible yet // Step 15