views:

100

answers:

1

Hi, I have Apache configured to compress content from web app running on Tomcat. Also the application uses Compression Filter.

How apache handle such situation when it receives compressed content and it's setup to compress content too.

Does Apache just shift the content to client or unzip content first and then compress it again?

+2  A: 

Normally, you have some filters configured on Apache mod_gzip, like,

mod_gzip_item_include         file       \.html$
mod_gzip_item_include         file       \.js$
mod_gzip_item_include         file       \.css$

The Tomcat compressed content will be simply passed to client without change.

I wouldn't recommend enabling compression on both. Apache does better job because it supports GZIP. Tomcat can only support inflate.

ZZ Coder