add Last-Modified header
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 4 Jul 2004 17:52:08 +0000 (17:52 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 4 Jul 2004 17:52:08 +0000 (17:52 +0000)
includes/RawPage.php

index 4116f00..003ab45 100644 (file)
@@ -87,6 +87,7 @@ class RawPage {
                        $rawtext = Article::getRevisionText( $s, "" );
                        if($wgInputEncoding != $this->mCharset)
                        $rawtext = $wgLang->iconv( $wgInputEncoding, $this->mCharset, $rawtext );
+                       header( 'Last-modified: '.gmdate( "D, j M Y H:i:s", wfTimestamp2Unix( $s->timestamp )).' GMT' );
                        return $rawtext;
                } else {
                        return '';