Skip to content

fix http cache reconstruct response from cache after validation behaviour#55613

Merged
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_40067
Oct 24, 2025
Merged

fix http cache reconstruct response from cache after validation behaviour#55613
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_40067

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

In the scenario of constructing response from cache resources after successful validation of expired cache resouce, Instead of just copying full body of the cached_resource, check if range header exist in request, if so reuse handle_range_request function to construct response.

Testing: Should past the manual test case in Issue servo/servo#40050
Fixes: servo/servo#40050

Reviewed in servo/servo#40067

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync merged commit 51b633d into web-platform-tests:master Oct 24, 2025
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_40067 branch October 24, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network: HTTP Request to resource cached previously would not consider range header when constructing response after revalidation.

3 participants