mod_gzip tip

After enabling mod_gzip I noticed that it wasn't compressing the output of some CGI scripts. In the logs I was seeing:

SEND_AS_IS:RESPONSE_CONTENT_TYPE_EXCLUDED

This seemed strange because I had the following entry in my httpd.conf:

mod_gzip_item_include mime ^text/html$

After looking at what was going on (thanks to livehttpheaders) I figured out that I wasn't sending "text/html", I was sending "Content-Type: text/html; charset=ISO-8859-1" which the regexp didn't match. Changing it to the following fixed the problem.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.