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

Using compression based on Accept-Encoding #1

Open
wkhere opened this issue Oct 16, 2023 · 0 comments
Open

Using compression based on Accept-Encoding #1

wkhere opened this issue Oct 16, 2023 · 0 comments

Comments

@wkhere
Copy link

wkhere commented Oct 16, 2023

Hi!

I am not sure if you intend to use this library only by a very specific user agent, but if you think of this middleware as of general purpose, there is this concern: user agent can set his preference in the Accept-Encoding header and the server should respect that; so, based on the header value, your middleware might skip compression and return the original content.

The rules are described in the RFC: https://rfc-editor.org/rfc/rfc7231#section-5.3.4

@wkhere wkhere changed the title Using compression based in Accept-Encoding Using compression based on Accept-Encoding Oct 16, 2023
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