From: Roan Kattouw Date: Wed, 8 Sep 2010 16:35:20 +0000 (+0000) Subject: Fix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP... X-Git-Tag: 1.31.0-rc.0~35091 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=195680aeb59cd726888a9dff0c68a23e535dfaf1;p=lhc%2Fweb%2Fwiklou.git Fix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP standard is retarded --- diff --git a/includes/ResourceLoader.php b/includes/ResourceLoader.php index 7c5689529c..4a165edc81 100644 --- a/includes/ResourceLoader.php +++ b/includes/ResourceLoader.php @@ -258,7 +258,7 @@ class ResourceLoader { header( 'Last-Modified: ' . wfTimestamp( TS_RFC2822, $mtime ) ); $expires = wfTimestamp( TS_RFC2822, min( $maxage, $smaxage ) + time() ); - header( "Cache-Control: public, maxage=$maxage, s-maxage=$smaxage" ); + header( "Cache-Control: public, max-age=$maxage, s-maxage=$smaxage" ); header( "Expires: $expires" ); // Check if there's an If-Modified-Since header and respond with a 304 Not Modified if possible