Automatic gzip compression for Apache2 Webservers

after failing and failing again in the last months, I finally got it with the help of

The .htaccess configuration

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript

requires Apache’s mod_deflate enabled via

$ a2enmod deflate
Module deflate installed; run /etc/init.d/apache2 force-reload to enable.

Check the result with

Caution: There seems to be an If-Modified-Since/Last-Modified HTTP 304 bug in mod_deflate, so better don’t use it for large, rarely changing files.

Comments 1

  1. ginda wrote:

    das ist doch das 2te was man installiert (nach perl) wenn man apache nutzt 😉

    Posted 24 Jun 2010 at 11:39 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *