From: Brion Vibber Date: Wed, 16 Jan 2008 20:59:24 +0000 (+0000) Subject: Add an explicit Cache-control: no-cache header on external edit; possible reports... X-Git-Tag: 1.31.0-rc.0~49954 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=9676b2c86b4ee2d31b3005974bc3958396eacb9c;p=lhc%2Fweb%2Fwiklou.git Add an explicit Cache-control: no-cache header on external edit; possible reports that our caches are aggressively caching these, though they shouldn't in an ideal world. --- diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index f592d3c229..f5ce5b9d0d 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -34,6 +34,7 @@ class ExternalEdit { $name=$this->mTitle->getText(); $pos=strrpos($name,".")+1; header ( "Content-type: application/x-external-editor; charset=".$this->mCharset ); + header( "Cache-control: no-cache" ); # $type can be "Edit text", "Edit file" or "Diff text" at the moment # See the protocol specifications at [[m:Help:External editors/Tech]] for