DEFLATE

From DreamHost

Jump to: navigation, search

DEFLATE is a lossless data compression algorithm similar to gzip, but it works in Apache 2. Instead of using PHP/mod_rewrite with ob_gzhandler, you can compress CSS and JavaScript with DEFLATE easily.

Implementation

Add this line to your .htaccess file:

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

External link

Personal tools