Add an explicit Cache-control: no-cache header on external edit; possible reports...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 16 Jan 2008 20:59:24 +0000 (20:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 16 Jan 2008 20:59:24 +0000 (20:59 +0000)
includes/ExternalEdit.php

index f592d3c..f5ce5b9 100644 (file)
@@ -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