lua-users home
lua-l archive

Re: Downloads on lua.org corrupted

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 03/21/2014 11:04 AM, Ian Scott wrote:
I suspect that the web server is doing an extra gzip compression of the content if the browser presents an Accept-Encoding:gzip header. It looks like the server is responding with a Content-Encoding:gzip header, which means the browser should decompress it on the fly, but it looks like that's not happening for whatever reason. Disabling gzip compression of non-plain text MIME types on the server should fix the problem.
Apparently most browsers not do the decompression because of a workaround of a bug where servers would erroneously serve .gz files with the headers "Content-Encoding: gzip" and "Content-Type: application/gzip".
https://bugzilla.mozilla.org/show_bug.cgi?id=448240
http://mail-archives.apache.org/mod_mbox/httpd-dev/200207.mbox/%3C3D2D4E76.4010502@talex.com.pl%3E
http://src.chromium.org/chrome/branches/250/src/net/base/filter.cc
Luiz, I'm not sure why you're not seeing this behavior across any of your browsers. In any case, setting the server to not compress .gz files should fix it for everyone.
Ian

AltStyle によって変換されたページ (->オリジナル) /