dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3862a35
)
Fix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 8 Sep 2010 16:35:20 +0000
(16:35 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 8 Sep 2010 16:35:20 +0000
(16:35 +0000)
includes/ResourceLoader.php
patch
|
blob
|
history
diff --git
a/includes/ResourceLoader.php
b/includes/ResourceLoader.php
index
7c56895
..
4a165ed
100644
(file)
--- 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