3
0
Fork 0
forked from mirrors/nixpkgs

apache-httpd: Don't set default content encodings

In general, you don't want a .tar.gz file to be served with
"Content-Encoding: x-gzip", because this causes browsers (like Chrome
or "curl --compressed") to decompress the file on the fly. So you end
up with a .tar rather than .tar.gz file, which is unexpected.

If people want such encodings, they should set them in their own NixOS
configuration.
This commit is contained in:
Eelco Dolstra 2015-07-07 11:56:28 +02:00
parent cf7e151744
commit 9fa19cfcea

View file

@ -187,9 +187,6 @@ let
<IfModule mod_mime_magic.c>
MIMEMagicFile ${httpd}/conf/magic
</IfModule>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
'';