|
Most webpages are sending to users using an uncompressed form. Actually PHP includes functions for sending pages in a "gz-encoded" form which will reduce around 60% to 80% of your webpage. This means your page will load much faster and lots of bandwidth can be saved.
To enable Gzip, just add below lines at the start of your files. As simply as this:
<?php
ini_set('zlib.output_compression_level', 5);
ob_start("ob_gzhandler");
?>
Note: compression level can be defined from 1 to 9
|