Use mod_deflate to Compress Web Content Delivered by Apache – Make Blog More Responsive
One of the most efficient methods to reduce the usage of bandwidth by the web server and, at the same time, increase the speed of the content delivery is to compress your web pages and, generally, all output that is returned to the clients. This article describes how to use the mod_deflate module to compress Apache’s output on-the-fly. You can make your website or blog respond faster by using this method.
Create a file named deflate.conf and import it in the main server’s configuration using the Include directive.
# # mod_deflate configuration # LoadModule deflate_module modules/mod_deflate.so
This configuration will be inherited by all virtual hosts.
To disable it just comment out the line that loads the mod_deflate module (#LoadModule deflate_module modules/mod_deflate.so).
To record mod_deflate’s specific variable (instream, outstream, ratio) values for a virtual host, just add a new log file of type deflate:
CustomLog /path/to/vhost/logs/deflate_log deflate
This will give you an idea of how efficient is the use of mod_deflate in that particular host.
Read More About mod_deflate
I asked my host support about it. They told me that they already do this technique for every website. wow. Happy Hosting, Happy Customer :)
Do you compress your web content? What method do you prefer?