This may not work, because there are spaces before the () header. Try this as follows:
<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
ob_start("ob_gzhandler");
} else {
ob_start();
}
header("Cache-Control: max-age=6000");
?>
You should also set an expired header because older browsers do not understand the “maximum age”.
Btw: Your server is currently sending "max-age: 0".
source
share