Description: mod_deflate is an Apache module which “provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.” (from its web). This means that you save some bandwidth in exchange for some CPU cycles compressing the data your Apache server sends.
Installation: If you have Apache installed, you don’t need additional packages, because this module belongs to the package “apache2.2-common“.
- Enable the mod_deflate module:
sudo a2enmod deflate
- Edit /etc/apache2/mods-enabled/deflate.conf with the following content:
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0 no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- Restart Apache:
sudo /etc/init.d/apache2 restart