Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 87253 invoked from network); 4 Nov 2004 16:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Nov 2004 16:12:28 -0000 Received: (qmail 75370 invoked by uid 500); 4 Nov 2004 16:12:10 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 75321 invoked by uid 500); 4 Nov 2004 16:12:09 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 75308 invoked by uid 99); 4 Nov 2004 16:12:09 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [209.86.89.66] (HELO smtpauth06.mail.atl.earthlink.net) (209.86.89.66) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 04 Nov 2004 08:12:07 -0800 Received: from [68.208.14.2] (helo=sappling) by smtpauth06.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1CPkDV-0000D7-4D for tomcat-dev@jakarta.apache.org; Thu, 04 Nov 2004 11:12:05 -0500 Message-ID: <002301c4c289$045fc5b0$ceeb10ac@sappling> From: "Steve Appling" To: Subject: Coyote Connector - Disabling compression for a specific servlet Date: Thu, 4 Nov 2004 11:11:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-ELNK-Trace: 320a1447d2a2d998ee07d4d7a534bda240683398e744b8a408dd64b3d9393b0b8d3fc9a068b110be350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 68.208.14.2 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have an application where I would like to disable gzip compression for a few specific pages / servlets. I originally planned to use a servlet filter to remove gzip from the accept-encoding header on the request, but this won't work. The container code that needs to check this (isCompressable method on Http11Processor) doesn't see the filtered request headers, but does see the response headers (this makes sense in retrospect). What does everyone think about supporting a special response header that could be used to disable compression on a particular request (something like X-NoCompress)? I'm not sure if there is a header used for something like this in other applications. I know there are stand-alone hardware boxes sold to handle HTTP compression outside of the web server. Do any of them support a similar mechanism to disable compression on a per request basis? --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org