fix(android): Concurrent Range Requests for assets#8357
Merged
OS-pedrogustavobilro merged 8 commits intoionic-team:mainfrom Feb 26, 2026
Merged
fix(android): Concurrent Range Requests for assets#8357OS-pedrogustavobilro merged 8 commits intoionic-team:mainfrom
OS-pedrogustavobilro merged 8 commits intoionic-team:mainfrom
Conversation
If multiple requests share the same header map, concurrent requests may end up with each other's Content-Length value, confusing the browser in case of range requests.
Range requests can have a non-zero starting point, in which case the first part of the requested file should be omitted in the response.
getResponseHeaders is accessible outside of Capacitor Framework. Removing it is a breaking change, instead marking it as deprecated and plan to remove it in a future major version.
Contributor
|
Hey @biguphpc thanks for brining the updated PR from @steinjak! I've made a few minor changes, but overall tested with https://github.com/OS-pedrogustavobilro/capacitor-test-pr8357 and it's working fine with this PR, the headers are being correctly returned. |
OS-pedrogustavobilro
approved these changes
Feb 26, 2026
This was referenced Feb 26, 2026
Closed
tossaro
pushed a commit
to tossaro/capacitor
that referenced
this pull request
Feb 26, 2026
Co-authored-by: Stein Jakob Nordbø <steinjak@gmail.com> Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
OS-pedrogustavobilro
pushed a commit
that referenced
this pull request
Mar 2, 2026
OS-pedrogustavobilro
added a commit
that referenced
this pull request
Mar 3, 2026
Deprecated in Capacitor 8 in #8357; To be removed in Capacitor 9
OS-pedrogustavobilro
added a commit
that referenced
this pull request
Mar 3, 2026
Co-authored-by: Stein Jakob Nordbø <steinjak@gmail.com> Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
OS-pedrogustavobilro
pushed a commit
that referenced
this pull request
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased against the latest main Capacitor branch and updated to resolve merge conflicts for PR #5956.
Checking quickly for requirement in #5956 (comment)