Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Selectively disable compression based on the incoming request. Fixes #10377 #10378
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.
For more details, please see:
referenced this pull request
Dec 14, 2018
@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
thank you for your reply. Meteor behind the nginx proxy correctly receives the Accept-Encoding request HTTP header:
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.