cache on the client side
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 28 Apr 2004 18:56:57 +0000 (18:56 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 28 Apr 2004 18:56:57 +0000 (18:56 +0000)
includes/RawPage.php

index faf2726..09b6b66 100644 (file)
@@ -19,6 +19,7 @@ class RawPage {
        }
        function view() {
                header( "Content-type: ".$this->mContentType.'; charset='.$this->mCharset );
+               header( 'Cache-Control: s-maxage=0, max-age=2678400' );
                echo $this->getrawtext();
                wfAbruptExit();
        }