4
Unless you also have lots of videos and iframes, which then if in the header also loads other people’s sites faster....
This is the code taken from the latest 2.0.17.1 common.php
if (empty($_SERVER['SERVER_NAME']) || substr(PHP_SAPI, 0, 3) == 'cli') {
$xoopsConfig['gzip_compression'] = 0;
}
if ( $xoopsConfig['gzip_compression'] == 1 && extension_loaded( 'zlib' ) && !ini_get( 'zlib.output_compression' ) ) {
if ( @ini_get( 'zlib.output_compression_level' ) < 0 ) {
ini_set( 'zlib.output_compression_level', 6 );
}
ob_start( 'ob_gzhandler' );
}
As you see using ('ob_gzhandler') which if we check
here is recommend, not as good as ('zlib.output')...
Quote:
Note: ob_gzhandler() requires the zlib extension.
Note: You cannot use both ob_gzhandler() and zlib.output_compression. Also note that using zlib.output_compression is preferred over ob_gzhandler().
If you notice in php.ini also there is a standard zlib.output on and not needing a level set, which is far easier and also works better……
Quote:
Sorry I hadn't understood
This compresses output of the files used….which you can test to see the smaller size of the site, to download to a persons browser.