From: Mischa POSLAWSKY Date: Thu, 27 Apr 2017 16:03:05 +0000 (+0200) Subject: common: fix max-age header value X-Git-Tag: v1.10~54 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/cb9e9afb6d730bf2799919d2a8bd4bc2ba0ad44d?ds=sidebyside common: fix max-age header value Invalid since introduction in commit v1.5-22-g423d297ed8 (2013-07-17) [htaccess: set max-age for plp to a day]. --- diff --git a/common.inc.plp b/common.inc.plp index 02821bb..4c7fbb9 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -101,7 +101,7 @@ sub Html { (grep { /\bShiar_/ } values %INC), $meta->{data} ? @{ $meta->{data} } : (), ); - $header{'Cache-Control'} = sprintf 'max-age: ', 24*60*60; + $header{'Cache-Control'} = 'max-age='.(24*60*60); } # default fallbacks