-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: disables automatic content decompression #7513
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
Conversation
Don't think this would be the correct fix. HTTP compression https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding is supposed to be used for compress-at-server-decompress-at-client to preserve network bandwidth. It could be used for any file.
When I would be curious to know as to whether the bitbucket mirror of the source issue is really hosting the gz files. |
@jeremylong I got confused by the PR title. Your change would not disable automatic content decompression, but would prevent the entire use of content compression. It would increase network traffic overall for any resource that would normally use content compression on the conmection. In my view the root of the issue is still a (proxy?) configuration error that serves an explicit request for a (binary) (.json.).gz file wrongly as a .json file served with gzip content-encoding when a client indicates that it knows how to handle gzip content-encoding. |
As an example it would increase data-traffic for the KEV json from 127_750 to 1_154_748 bytes Results with some added tracing of the headers with and without the fix shows that apparently KEV serving is optimized for gzipped content-encoding as it switches to a With your fix:
Without your fix (
|
resolves #7475
See https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html#disableContentCompression()