Skip to content
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

Closed
logiclabs opened this issue Jul 2, 2015 · 5 comments
Closed

No GZip Compression over HTTP #4815

logiclabs opened this issue Jul 2, 2015 · 5 comments

Comments

@logiclabs
Copy link

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:

image

@PeterDaveHello
Copy link
Contributor

cc @terinjokes

@PeterDaveHello
Copy link
Contributor

I don't see problem here.
Imgur

@logiclabs
Copy link
Author

Apologies. On further inspection and testing on another computer, it appears to be something running locally that is altering the content. A little worrying.

@logiclabs
Copy link
Author

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):

image

@PeterDaveHello
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants