Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/155463
Change subject: Make IE not cache ajax request
......................................................................
Make IE not cache ajax request
Bug: 69160
Change-Id: I565676880647ca1ffd90266b05518ca1edb0b8ee
---
M includes/api/ApiFlow.php
M modules/new/flow-api.js
2 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/63/155463/1
diff --git a/includes/api/ApiFlow.php b/includes/api/ApiFlow.php
index 1a0bd9a..de7a180 100644
--- a/includes/api/ApiFlow.php
+++ b/includes/api/ApiFlow.php
@@ -42,6 +42,9 @@
}
public function execute() {
+ // To avoid API warning, register the parameter used to bust
browser cache
+ $this->getMain()->getVal( '_' );
+
$params = $this->extractRequestParams();
/** @var $module ApiFlowBase */
$module = $this->moduleManager->getModule(
$params['submodule'], 'submodule' );
diff --git a/modules/new/flow-api.js b/modules/new/flow-api.js
index eca8d4c..7693c16 100644
--- a/modules/new/flow-api.js
+++ b/modules/new/flow-api.js
@@ -52,7 +52,7 @@
method = method ? method.toUpperCase() : 'GET';
var $deferred = $.Deferred(),
- mwApi = new mw.Api();
+ mwApi = new mw.Api( { ajax: { cache: false } }
);
if ( !params.action ) {
mw.flow.debug( '[FlowAPI] apiCall error:
missing action string', arguments );
--
To view, visit https://gerrit.wikimedia.org/r/155463
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I565676880647ca1ffd90266b05518ca1edb0b8ee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits