Category | Mod_Deflate

mod_deflate alternative way for css and javascript through mod_rewrite rules

Posted on 20 January 2010

This method is probably the best method to overcome the mod_deflate issue and we are only concerned about javascript and css files for now. What we need to do is gzip all our javascript & css files. (Note: PHP has an easy method to compress php files on the fly). You have to have shell [...]

Tags: , ,

Compress html output, css & javascript with mod_deflate module in Apache 2

Posted on 20 January 2010

.htaccess configuration Normally be able to enable mod_deflate module for Apache2 safely with the following lines inside your .htaccess file in your www root of your website: Virtual Host Notes Some people argue that configuration in the VHost is better because it saves your server the disk IO of accessing the .htaccess file with every [...]

Tags: , , ,