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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Member

PeterDaveHello commented Jul 2, 2015

@PeterDaveHello

This comment has been minimized.

Member

PeterDaveHello commented Jul 2, 2015

I don't see problem here.
Imgur

@logiclabs

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Member

PeterDaveHello commented Jul 2, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment