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

@logiclabs logiclabs commented Jul 2, 2015

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

@PeterDaveHello PeterDaveHello commented Jul 2, 2015

@PeterDaveHello
Copy link
Contributor

@PeterDaveHello PeterDaveHello commented Jul 2, 2015

I don't see problem here.
Imgur

@logiclabs
Copy link
Author

@logiclabs logiclabs commented Jul 2, 2015

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 logiclabs closed this Jul 2, 2015
@logiclabs
Copy link
Author

@logiclabs logiclabs commented Jul 2, 2015

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

@PeterDaveHello PeterDaveHello commented Jul 2, 2015

👍

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

Successfully merging a pull request may close this issue.

None yet
2 participants