mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Don't retry request in tryWithPreparedCacheKey unless the error was badcachekey
Bug: T109787 Change-Id: I66cd40fadcdfd59bbea05240d0c9917342c6f5a2
This commit is contained in:
parent
6ae6373842
commit
01f7207947
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue