cache headers- allow client to cache for one day
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 28 Apr 2004 19:28:39 +0000 (19:28 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 28 Apr 2004 19:28:39 +0000 (19:28 +0000)
includes/RawPage.php

index 09b6b66..8ed7bce 100644 (file)
@@ -19,7 +19,8 @@ class RawPage {
        }
        function view() {
                header( "Content-type: ".$this->mContentType.'; charset='.$this->mCharset );
-               header( 'Cache-Control: s-maxage=0, max-age=2678400' );
+               # allow the client to cache this for 24 hours
+               header( 'Cache-Control: s-maxage=0, max-age=86400' );
                echo $this->getrawtext();
                wfAbruptExit();
        }