From 9676b2c86b4ee2d31b3005974bc3958396eacb9c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 16 Jan 2008 20:59:24 +0000 Subject: [PATCH] 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. --- includes/ExternalEdit.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1