r16948 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16947‎ | r16948 | r16949 >
Date:19:35, 11 October 2006
Author:jeluf
Status:old
Tags:
Comment:
Setting Cache-Control headers on responses, so that the squids don't cache the results
Modified paths:
  • /trunk/extensions/BotQuery/query.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BotQuery/query.php
@@ -650,6 +650,7 @@
651651 $printer = $this->outputGenerators[$this->format][GN_FUNC];
652652 $mime = $this->outputGenerators[$this->format][GN_MIME];
653653 header( "Content-Type: $mime; charset=utf-8;" );
 654+ header( "Cache-Control: private, s-maxage=0, max-age=0" );
654655 if( !$isError ) {
655656 if( !$this->enableProfiling && array_key_exists( 'perf', $this->data )) {
656657 $perf =& $this->data['perf'];