$value) {
header($prop === '_responseCode' ? $value : "{$prop}: {$value}");
}
return $out['content'];
}
/**
* Get a stepped version of time with a random-like constistent offset
*
* This emulates the mtime() of a file being modified regularly. The offset
* allows you to use the same period in several instances without them all
* stepping up simultaneously. Offsets should be evenly distributed.
*
* @param int $period in seconds
* @param string $instanceId
* @return int
*/
function _steppedTime($period, $instanceId = '') {
$hashInt = hexdec(substr(md5($instanceId), 0, 8));
$t = $_SERVER['REQUEST_TIME'];
return $t - ($t % $period) - ($hashInt % $period);
}
ob_start('ob_minify_page');