* Keep generated stylesheets cache-separated for each user
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 24 Dec 2004 01:50:01 +0000 (01:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 24 Dec 2004 01:50:01 +0000 (01:50 +0000)
includes/RawPage.php

index 2c9b8c5..41d599f 100644 (file)
@@ -75,6 +75,8 @@ class RawPage {
                header( "Content-type: ".$this->mContentType.'; charset='.$this->mCharset );
                # allow the client to cache this for 24 hours
                header( 'Cache-Control: s-maxage='.$this->mSmaxage.', max-age='.$this->mMaxage );
+               # Make sure each logged-in user gets his/her own stylesheet
+               header( 'Vary: Cookie' );
                if($this->mGen) {
                        $sk = $wgUser->getSkin();
                        $sk->initPage($wgOut);