Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 23646 invoked from network); 2 Apr 2008 00:34:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 00:34:13 -0000 Received: (qmail 94151 invoked by uid 500); 2 Apr 2008 00:33:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94127 invoked by uid 500); 2 Apr 2008 00:33:59 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 94116 invoked by uid 99); 2 Apr 2008 00:33:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 17:33:59 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 00:33:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Jgquw-0002g7-6o for users@tomcat.apache.org; Tue, 01 Apr 2008 17:33:30 -0700 Message-ID: <16432129.post@talk.nabble.com> Date: Tue, 1 Apr 2008 17:33:30 -0700 (PDT) From: Alex Epshteyn To: users@tomcat.apache.org Subject: Re: Large HTML file not getting compressed despite compression enabled In-Reply-To: <9221457f0803301356w551f134fl402ddf83faaf3e63@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: alexander.epshteyn@gmail.com References: <9221457f0803301356w551f134fl402ddf83faaf3e63@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Does anyone know what might be happening here? This is a pretty strange problem... Thanks for your time, Alex Alex Epshteyn wrote: > > I have Tomcat's compression enabled: > > maxThreads="200" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" redirectPort="8443" acceptCount="100" > connectionTimeout="20000" disableUploadTimeout="true" > compression="on" > compressionMinSize="2048" > noCompressionUserAgents="gozilla, traviata" > > compressableMimeType="text/html,text/xml,text/javascript,text/css"/> > > It works as expected for all my resources (stylesheets, scripts, etc) > except for one static file, which has the extension .cache.html (in > case you're wondering, it contains scripts generated by GWT). This > file is pretty large - about 150K, but Tomcat doesn't compress it for > some reason. > > Here are the response headers for this file (I have a custom filter > that sets the cache headers prior to forwarding the request up the > chain): > > Server Apache-Coyote/1.1 > Cache-Control public, max-age=315360000 > Expires Wed, 28 Mar 2018 18:58:38 GMT > Etag W/"136900-1206809984000" > Last-Modified Sat, 29 Mar 2008 16:59:44 GMT > Content-Type text/html > Content-Length 136900 > Date Sun, 30 Mar 2008 20:44:14 GMT > > Here are the response headers for a file that gets properly compressed > (which also passes through the same filter): > > Server Apache-Coyote/1.1 > Pragma no-cache > Cache-Control max-age=0, no-store, no-cache, must-revalidate > Expires Thu, 01 Jan 1970 00:00:00 GMT > Etag W/"4869-1206809984000" > Last-Modified Sat, 29 Mar 2008 16:59:44 GMT > Content-Type text/javascript > Transfer-Encoding chunked > Content-Encoding gzip > Vary Accept-Encoding > Date Sun, 30 Mar 2008 20:44:14 GMT > > I don't see any relevant errors in my log files. I'm using Tomcat > 5.5.26 on Linux. As a strange twist, the file does get compressed > properly with Tomcat 5.5.26 on Windows. > > Any ideas? > > Thanks in advance for your help! > > Alex > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Large-HTML-file-not-getting-compressed-despite-compression-enabled-tp16387385p16432129.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org