Do you want to reduce the page load time and HTTP response time on your site? Enabling the GZIP output compression will help you achieve it. Simply add the following code to the functions.php file of your WordPress theme.
if(extension_loaded("zlib") && (ini_get("output_handler") != "ob_gzhandler")) add_action('wp', create_function('', '@ob_end_clean();@ini_set("zlib.output_compression", 1);'));
We hope this code has helped you enable GZIP output compression. You should also check out our guide on how to add SSL and HTTPS in WordPress.