From c7d79bab474f00eb5a2d5a06df58ff1a74d6aaf0 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 28 Apr 2004 19:28:39 +0000 Subject: [PATCH] cache headers- allow client to cache for one day --- includes/RawPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/RawPage.php b/includes/RawPage.php index 09b6b6664a..8ed7bcee0e 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -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(); } -- 2.20.1