Repository navigation
Use unfiltered response body when replicating body of cached responses. - #24356
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try=wpt |
Use unfiltered response body when replicating body of cached responses. The amount of time it took me to track this down makes me wonder if there would be a better way of representing response bodies and filtered responses. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24350 - [ ] There are tests for these changes <!-- 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/24356) <!-- Reviewable:end -->
|
To test this specifically, we would require:
Before these changes, the second request would hang because the code that runs when the first response is complete looks at the filtered body, not the unfiltered one. After these changes the second request should observe the complete cached response after the first request is complete. |
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
Sounds like we can create different types with Phantom Type to me 👀 Like the valid form example in Haskell. |
|
r=me with mach fmt. |
|
@bors-servo r=paulrouget |
|
📌 Commit 2156ed7 has been approved by |
Use unfiltered response body when replicating body of cached responses. The amount of time it took me to track this down makes me wonder if there would be a better way of representing response bodies and filtered responses. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24350 - [ ] There are tests for these changes <!-- 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/24356) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-css |
|
@bors-servo retry |
Use unfiltered response body when replicating body of cached responses. The amount of time it took me to track this down makes me wonder if there would be a better way of representing response bodies and filtered responses. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24350 - [ ] There are tests for these changes <!-- 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/24356) <!-- Reviewable:end -->
|
💔 Test failed - status-taskcluster |
Use unfiltered response body when replicating body of cached responses. The amount of time it took me to track this down makes me wonder if there would be a better way of representing response bodies and filtered responses. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24350 - [ ] There are tests for these changes <!-- 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/24356) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
Cache crossorigin test This adds a test for #24356 to ensure that we don't regress our cache behaviour. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- 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/24370) <!-- Reviewable:end -->
The amount of time it took me to track this down makes me wonder if there would be a better way of representing response bodies and filtered responses.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is