mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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:
parent
2f7af7fa25
commit
f7a9c20e1d
@ -1679,7 +1679,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+
|
||||
|
Loading…
Reference in New Issue
Block a user