Don't retry request in tryWithPreparedCacheKey unless the error was badcachekey

Bug: T109787
Change-Id: I66cd40fadcdfd59bbea05240d0c9917342c6f5a2
This commit is contained in:
Alex Monk 2015-08-21 02:01:56 +01:00
parent 6ae6373842
commit 01f7207947

View file

@ -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 {