tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: GZIP support in Tomcat 7
Date Wed, 19 Feb 2014 09:07:56 GMT
Christopher Schultz wrote:
> Hash: SHA256
> Akash,
> On 2/18/14, 7:45 PM, Akash Jain wrote:
>> I have following configuration in my server.xml :
>> <Connector port="19380" protocol="HTTP/1.1" compression="on" 
>> compressableMimeType="text/ 
>> html,text/xml,text/plain,application/javascript,application/json,text/javascript,text/json"
> connectionTimeout="20000"
>> redirectPort="8443" /> But still when I am checking for JS/CSS
>> files in browser, the size returned is not less.
>> Can anybody guide as to what I am missing here.
> How are you checking the "size" returned?
> Can you provide full request and response headers of an example request?

Also this ?


If compression is set to "on" then this attribute may be used to specify the minimum 
amount of data before the output is compressed. If not specified, this attribute is 
defaults to "2048".

.. and the note about using "sendFile", just above ?

There seems to be quite an amount of potential interaction between the various 
"compression"* and "sendfile"* attributes, also depending on the Connector being used, and

whether it is APR or not.  Maybe we're in one of those cases here ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message