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
Disable br compression when no Accept-Encoding header is present #10178
Disable br compression when no Accept-Encoding header is present #10178
Conversation
d52d748
to
3623aa6
Compare
The wording in RFC 2616, specifically in https://datatracker.ietf.org/doc/html/rfc2616#section-14.3 is similar to this " If no Accept-Encoding field is present in a request, the server MAY In any case, I believe this option should be configurable. For example:
It should, by default, be disabled, following the semantics of RFC 9110. |
1918191
to
e3dfb4a
Compare
Hello @rjsocha, Thanks for this feedback. It seems to me that the need to introduce an option to control this behavior should be discussed in a dedicated issue first. |
Hello @robin-moser, I have enabled the checks, and as you can see, the |
Sorry, I missed that one! |
ce1545c
to
6c98fbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Hey @robin-moser , We'd like to bring your feature in Traefik v3.0. |
Hi @nmengin, |
To ensure compatibility, it is recommended not to compress a request when there is no Accept-Encoding header. See traefik#9734
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com> Co-authored-by: Landry Benguigui <lbenguigui@gmail.com>
e0b53f6
to
794ef7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Fixes #9734
To ensure compatibility, it is recommended not to compress a request when there is no Accept-Encoding header present, even though RFC9110 (accept-encoding) would allow any compression.
Motivation
Stops traefik from breaking multiple applications that don't send a Accept-Encoding header and at the same time don't have any support for encoded http responses. Two breaking examples are
yum/dnf
andZenarmor on Opnsense
.More