This content has been marked as final.
Show 3 replies
-
1. Re: serve web application content as gzip- compressed
peterj Sep 28, 2006 11:51 AM (in response to massoo)Try setting the 'compression' attribute for the http connector in deploy/jbossweb-tomcat55.sar/server.xml.
Something like this:<Connector port="8080" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" compression="on" />
For documentation on the server.xml file, see the Tomcat docs at http://tomcat.apache.org/tomcat-5.5-doc/config/http.html -
2. Re: serve web application content as gzip- compressed
massoo Oct 5, 2006 1:13 AM (in response to massoo)hi,
thanks for the tip. how about using this compression filter ?
http://sourceforge.net/projects/pjl-comp-filter/
shann -
3. Re: serve web application content as gzip- compressed
renen Apr 2, 2007 4:41 PM (in response to massoo)To get compression to work as you would expect it, I think that you probably also want to add the following attribute-value pair:
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript,text/css"
as the list of default mime types is quite small (see http://tomcat.apache.org/tomcat-5.5-doc/config/http.html).