When using on_start() does it make any difference to do,
// ENABLE GZIP COMPRESSION
ob_start();
ob_start('ob_gzhandler');
Or is this exactly the same,
// ENABLE GZIP COMPRESSION
ob_start('ob_gzhandler');
I ask as with the first example my website seems to speed up a bit.
Thanks
You should do either:
or:
But not both. You can check
$_SERVER['HTTP_ACCEPT_ENCODING']to see if the user agent accepts gzip encodings: