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
Selectively disable compression based on the incoming request. Fixes #10377 #10378
Conversation
8e4573d
to
bd72fa0
Compare
@georgyberdyshev We're open to this solution (since it will solve your use case), but I was just wondering if your nginx proxy is stripping/disabling the |
bd72fa0
to
3d0ea31
Compare
Hello @benjamn, thank you for your reply. Meteor behind the nginx proxy correctly receives the Accept-Encoding request HTTP header: nginx log: Meteor:
I have updated the PR to use the x-no-compression HTTP request header, as this will provide more granularity and also makes an additional environment variable for Meteor obsolete. Thanks, Georgy |
Setting the x-no-compression request header disables compression.
3d0ea31
to
0572ccd
Compare
Co-Authored-By: georgyberdyshev <georgyberdyshev@users.noreply.github.com>
Thanks @benjamn ! |
Hello @benjamn,
this a PR to fix #10377
Currently Auto-compress forces gzip compression, that cannot be disabled and therefore interferes with the possibility to enable a different Content-Encoding on a frontend-proxy.
Adding an environment variable to disable Auto-compress will allow to use Brotli compression through a front-end proxy, such as nginx, and provide better compression ratio than gzip.
METEOR_DISABLE_AUTO_COMPRESS=1
For more details, please see:
#10377
Thanks, Georgy