Fix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 8 Sep 2010 16:35:20 +0000 (16:35 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 8 Sep 2010 16:35:20 +0000 (16:35 +0000)
includes/ResourceLoader.php

index 7c56895..4a165ed 100644 (file)
@@ -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