Skip to content

Conversation

@achingbrain
Copy link
Member

@achingbrain achingbrain commented Dec 18, 2025

When a range header is detected, use an in-page fetch invocation to run the test, this way it will be handled by the service worker and not trigger https://issues.chromium.org/issues/469788775

Enables all single, multi and full-range conformance tests.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Returning 206 causes Chrome to error with "File wasn't available on site"
which then also breaks playwright.

Instead override 206 to 200 and skip storing the partial response
in the response cache.

In the conformance suite we translate back to 206 so the response
is as expected.

Enables all single-range conformance tests.
@achingbrain achingbrain changed the title fix: override range response status chore: use fetch for range conformance tests Dec 18, 2025
@achingbrain achingbrain merged commit 6e653f1 into main Dec 18, 2025
30 of 33 checks passed
@achingbrain achingbrain deleted the fix/override-range-response-status branch December 18, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants