include pragma='no-cache' in the cache header reset

pull/178/head
Seth Battin 10 years ago
parent 10750b5ce3
commit bb11ca47bc

@ -190,6 +190,9 @@ class Response {
$expires = is_int($expires) ? $expires : strtotime($expires);
$this->headers['Expires'] = gmdate('D, d M Y H:i:s', $expires) . ' GMT';
$this->headers['Cache-Control'] = 'max-age='.($expires - time());
if (isset($this->headers['Pragma']) && $this->headers['Pragma'] == 'no-cache'){
unset($this->headers['Pragma']);
}
}
return $this;
}

Loading…
Cancel
Save