git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit9fa19cfcea4ed163f96eeaa5c9c103ad099bea18 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 7 Jul 2015, 11:56 (11 years ago) parentcf7e151
1 file changed−3
nixos/modules/services/web-servers/apache-httpd/default.nix−3
nixos/modules/services/web-servers/apache-httpd/default.nix−3
@@ -187,9 +187,6 @@ let
187187 <IfModule mod_mime_magic.c>
188188 MIMEMagicFile ${httpd}/conf/magic
189189 </IfModule>
190−
191− AddEncoding x-compress Z
192− AddEncoding x-gzip gz tgz
193190 '';
194191
195192