You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
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:
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):