2006-08-16

Site wide gzip compression

After some googling and .htaccess magic all .html files on this site are handled as php files and through the use of the following bit of code in the blogger template all files are gzip encoded for faster delivery!
<?php
ob_start( 'ob_gzhandler' );
?>
Above code is present at the top of all pages.

Following is the .htaccess hack, required because I moved the extension of the pages from .html to .php and some pages stayed in .html land
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .htm
Cheers,
Steve