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

Prefer compression encodings: brotli > gzip > deflate #325

Merged
merged 1 commit into from Jan 26, 2023

Conversation

casey
Copy link
Contributor

@casey casey commented Jan 26, 2023

This PR changes the preference of compression encodings when multiple encodings are acceptable to the client at the same quality value. It prefers brotli over gzip over deflate, since that seems to be the general consensus as to which compression schemes are preferred when multiple are available.

I think this is a good default, since if the browser accepts brotli and gzip, and both the brotli and gzip features are enabled, the user would probably prefer brotli.

@Nehliin Nehliin merged commit a6d0f7b into tower-rs:master Jan 26, 2023
@casey casey deleted the prefer-brotli branch January 26, 2023 18:21
@casey
Copy link
Contributor Author

casey commented Jan 26, 2023

Nice, thank you for reviewing!

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.

None yet

2 participants