From 15b9121957f5c612502a36fa1b17ffdf1ab4e44e Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sun, 4 Jul 2004 17:52:08 +0000 Subject: [PATCH] add Last-Modified header --- includes/RawPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/RawPage.php b/includes/RawPage.php index 4116f00566..003ab452f7 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -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 ''; -- 2.20.1