tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Epshteyn <alexander.epsht...@gmail.com>
Subject Re: Large HTML file not getting compressed despite compression enabled
Date Wed, 02 Apr 2008 00:33:30 GMT

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:
> 
> <Connector port="8080" maxHttpHeaderSize="8192"
>                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


Mime
View raw message