From 127a8d2bbffc63c4ff008db7f3fafff06de72c6e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Apr 2013 10:24:29 +0000 Subject: [PATCH] fixed typo in cache-control header, causing pages not getting cached, if clients used it in favor of Expires header --- phpgwapi/inc/class.egw_session.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_session.inc.php b/phpgwapi/inc/class.egw_session.inc.php index 38577d587a..5038b81ed7 100644 --- a/phpgwapi/inc/class.egw_session.inc.php +++ b/phpgwapi/inc/class.egw_session.inc.php @@ -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+