From 9fa19cfcea4ed163f96eeaa5c9c103ad099bea18 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Jul 2015 11:56:28 +0200 Subject: [PATCH] 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. --- nixos/modules/services/web-servers/apache-httpd/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix index 2885fd396525..7350a6a68c70 100644 --- a/nixos/modules/services/web-servers/apache-httpd/default.nix +++ b/nixos/modules/services/web-servers/apache-httpd/default.nix @@ -187,9 +187,6 @@ let MIMEMagicFile ${httpd}/conf/magic - - AddEncoding x-compress Z - AddEncoding x-gzip gz tgz '';