public function cache($expires)
{
if ($expires === false) {
$headers = array('Expires' => 'Mon, 26 Jul 1997 05:00:00 GMT', 'Cache-Control' => array('no-store, no-cache, must-revalidate', 'post-check=0, pre-check=0', 'max-age=0'), 'Pragma' => 'no-cache');
} else {
$expires = is_int($expires) ? $expires : strtotime($expires);
$headers = array('Expires' => gmdate('D, d M Y H:i:s', $expires) . ' GMT', 'Cache-Control' => 'max-age=' . ($expires - time()), 'Pragma' => 'cache');
}
$this->headers($headers);
}