mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
http-cache: remove double-store of resources
This commit is contained in:
parent
4f41065dfb
commit
049817c5a7
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue