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
No GZip Compression over HTTP #4815
Comments
cc @terinjokes |
Apologies. On further inspection and testing on another computer, it appears to be something running locally that is altering the content. A little worrying. |
Just to follow up, as I expect his may be useful to other developers: This issue was caused by anti-virus software running locally. It appears it was intercepting the compressed content and returning the uncompressed file, and correctly altering the HTTP headers. Despite me disabling the AV protection while testing the issue, it was still monitoring and modifying the HTTP traffic. The anti-virus software is ESET NOD32 Antivirus 8. To ensure you see the unmodified (gzipped) HTTP traffic in the browser, you need to disable HTTP checking (see here): |
👍 |
When retrieving files over HTTP with "Accept-Encoding: gzip", cdnjs does not return a compressed version of the file. This issue appears to be the same for all HTTP requests with CloudFlare. Over HTTPS, the compressed version is correctly returned.
Example, using JQuery:
The text was updated successfully, but these errors were encountered: