Enable GZIP output compression on a WordPress Blog
This is a great optimization code for any wordpress blog out there. Some servers might do it automatically, others don’t, in case of doubt just create the code below in the functions.php file and see your bandwidth consumption go down just like your site loading time.
if(extension_loaded("zlib") && (ini_get("output_handler") != "ob_gzhandler"))
add_action('wp', create_function('', '@ob_end_clean();@ini_set("zlib.output_compression", 1);'));