jquery / codeorigin.jquery.com

jQuery CDN
https://releases.jquery.com
Other
57 stars 605 forks source link

jQuery Core 3.6.1 minified release is not compressed #98

Closed mroskamp closed 8 months ago

mroskamp commented 8 months ago

It appears that the minified release of jQuery Core 3.6.1 (https://code.jquery.com/jquery-3.6.1.min.js) does not use the standard gzip compression. The minified release of other jQuery versions (3.6.0-3.6.3) are compressed with gzip. Similarly, the slim and slim minified releases of jQuery 3.6.1 are also compressed with gzip.

mgol commented 8 months ago

Thanks for the report.

@Krinkle any ideas? I confirm 3.6.1 is not gzipped, 3.7.1 is so it's not uniform. Some older versions are also gzipped properly (e.g. 1.4.4), what's so special about 3.6.1?

Krinkle commented 8 months ago

@mgol I'm not sure. I purged it just now to test with curl and the newly populated entry is working correctly with gzip on and off depending on browser headers (e.g. curl gets raw, and curl --compressed, like browsers, gets gzip).

To increase chances of me making the first request after a purge, I used an old qunit release instead, and requested it via codeorigin.jquery.com. And I tested it both with curl making the first request with --compressed, and making the request without it. Either way results in a correctly working cache entry that is served correctly both ways.

mgol commented 8 months ago

OK, maybe let’s just hope it was a one-off? And only investigate further if we get another report?

@mroskamp can you confirm it works correctly now?

mroskamp commented 8 months ago

@mgol, confirmed. 3.6.1 is correctly compressed now. Thank you!

mgol commented 3 months ago

This is happening again and for some assets that were working fine for me originally (e.g. minified 3.7.1): #103.