From 01f720794731bd31610e8b078feee868b8266dcf Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Fri, 21 Aug 2015 02:01:56 +0100 Subject: [PATCH] Don't retry request in tryWithPreparedCacheKey unless the error was badcachekey Bug: T109787 Change-Id: I66cd40fadcdfd59bbea05240d0c9917342c6f5a2 --- modules/ve-mw/init/ve.init.mw.Target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.Target.js b/modules/ve-mw/init/ve.init.mw.Target.js index 7fca380122..ae0d76099b 100644 --- a/modules/ve-mw/init/ve.init.mw.Target.js +++ b/modules/ve-mw/init/ve.init.mw.Target.js @@ -1384,7 +1384,7 @@ ve.init.mw.Target.prototype.tryWithPreparedCacheKey = function ( doc, options, e } // This cache key is evidently bad, clear it target.clearPreparedCacheKey(); - if ( !isRetried ) { + if ( !isRetried && errorName === 'badcachekey' ) { // Try again without a cache key return ajaxRequest( null, true ); } else {