mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #23494 - gterzian:improve_http_cache, r=jdm
Various improvements and update to the http cache <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23494) <!-- Reviewable:end -->
This commit is contained in:
commit
5592682c4b
5 changed files with 77 additions and 40 deletions
|
@ -456,10 +456,8 @@ pub fn main_fetch(
|
|||
// Step 24.
|
||||
target.process_response_eof(&response);
|
||||
|
||||
if !response.is_network_error() {
|
||||
if let Ok(mut http_cache) = context.state.http_cache.write() {
|
||||
http_cache.update_awaiting_consumers(&request, &response);
|
||||
}
|
||||
if let Ok(mut http_cache) = context.state.http_cache.write() {
|
||||
http_cache.update_awaiting_consumers(&request, &response);
|
||||
}
|
||||
|
||||
// Steps 25-27.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue