Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Content-Encoding:gzip(?) #100

Open
cmdcolin opened this issue Dec 11, 2023 · 2 comments
Open

Support for Content-Encoding:gzip(?) #100

cmdcolin opened this issue Dec 11, 2023 · 2 comments

Comments

@cmdcolin
Copy link
Collaborator

Content-Encoding:gzip often confuses not just jbrowse but the web browser also

In some limited cases, we can skip running pako unzip steps like this PR demonstrates and this will decode the BAM header, but it still fails on the actual BAM data. the error at that point I believe comes from the browser, and not any JS code, so I think this may be the limiting factor

example of allowing the header to be read
https://github.com/GMOD/bam-js/compare/t1?expand=1

@cmdcolin
Copy link
Collaborator Author

the behavior for this can vary slightly between browsers, so it's a bit tricky. in general, the rule to best play by is to not set Content-Encoding: gzip

@cmdcolin
Copy link
Collaborator Author

xref GMOD/jbrowse-components#4120 another content-encoding:gzip related issue most likely

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

No branches or pull requests

1 participant