You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Epshteyn <al...@gmail.com> on 2008/04/02 02:33:30 UTC
Re: Large HTML file not getting compressed despite compression
enabled
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
Re: Large HTML file not getting compressed despite compression
enabled
Posted by lawrephord27 <la...@hotmail.com>.
if you have the time try using debug trace to look at every step to see what
is working
Does anyone know what might be happening here? This is a pretty strange
problem...
Thanks for your time,
Alex
--
View this message in context: http://www.nabble.com/Large-HTML-file-not-getting-compressed-despite-compression-enabled-tp16387385p16434715.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