Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 27573 invoked from network); 28 Oct 2006 15:41:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2006 15:41:41 -0000 Received: (qmail 54511 invoked by uid 500); 28 Oct 2006 15:41:49 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 54289 invoked by uid 500); 28 Oct 2006 15:41:49 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 54278 invoked by uid 99); 28 Oct 2006 15:41:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 08:41:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 08:41:36 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id B899E203A for ; Sat, 28 Oct 2006 16:35:26 +0100 (BST) Subject: Re: mod_deflate ignores Content-Encoding header From: Nick Kew To: dev@httpd.apache.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Sat, 28 Oct 2006 16:35:26 +0100 Message-Id: <1162049726.11522.16.camel@grimnir> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2006-10-26 at 17:38 +0200, Sven Köhler wrote: > Hi, > > imagine a simple CGI-script: > > > #!/usr/bin/perl > print "Content-Encoding: identity\n"; > print "Content-Type: text/plain\n"; > print "\n"; > print "test"; > > > AFAIK, "identity" indicates, that no transformation is being done on the > content. > > IMHO, mod_deflate should implement the following logic: > > Content-Encoding-header already present? > yes: do nothing, just forward content > no: add Content-Encoding header and do compression It's a valid behaviour. So's the current one. Putting it under the control of the admin is a reasonable proposition. mod_filter does that: you can conditionally insert mod_deflate. -- Nick Kew