HTTP gzip compression not working for css or javascript in tomcat 6

Posted by Draemon on Server Fault See other posts from Server Fault or by Draemon
Published on 2009-06-20T12:42:27Z Indexed on 2011/02/22 7:27 UTC
Read the original article Hit count: 594

Filed under:
|
|
|

Connector settings:

<Connector ...
compression="2048"
noCompressionUserAgents="gozilla, traviata"
compressionMimeType="text/html,text/xml,text/plain,text/css,text/javascript"/>

This seems to work for html, but not for css or javascript. compression="force" does work, but compression="on" doesn't. compression="2" doesn't work either, so I don't know what "force" is really doing.

The files in question are about 6k, I've cleared the browser cache, etc.

© Server Fault or respective owner

Related posts about tomcat

Related posts about compression