fixed typo in cache-control header, causing pages not getting cached, if clients used it in favor of Expires header

This commit is contained in:
Ralf Becker 2013-04-05 10:24:29 +00:00
parent dca3ece7a6
commit 127a8d2bbf

View File

@ -1661,7 +1661,7 @@ class egw_session
}
else
{
header('Cache-Control: public, maxage='.$expire);
header('Cache-Control: public, max-age='.$expire);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expire) . ' GMT');
// remove Pragma header, might be set by old header
if (function_exists('header_remove')) // PHP 5.3+