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:
parent
cf7e151744
commit
9fa19cfcea
@ -187,9 +187,6 @@ let
|
|||||||
<IfModule mod_mime_magic.c>
|
<IfModule mod_mime_magic.c>
|
||||||
MIMEMagicFile ${httpd}/conf/magic
|
MIMEMagicFile ${httpd}/conf/magic
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
AddEncoding x-compress Z
|
|
||||||
AddEncoding x-gzip gz tgz
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user