diff --git a/public/framework/catalog_cache/cache_intercept.ts b/public/framework/catalog_cache/cache_intercept.ts index a44256aedd..3f50bf00b1 100644 --- a/public/framework/catalog_cache/cache_intercept.ts +++ b/public/framework/catalog_cache/cache_intercept.ts @@ -7,15 +7,11 @@ import { HttpInterceptorResponseError, IHttpInterceptController, } from '../../../../../src/core/public'; -import { SECURITY_PLUGIN_ACCOUNT_API } from '../../../common/constants/shared'; import { CatalogCacheManager } from './cache_manager'; export function catalogCacheInterceptError(): any { return (httpErrorResponse: HttpInterceptorResponseError, _: IHttpInterceptController) => { - if ( - httpErrorResponse.response?.status === 401 && - httpErrorResponse.fetchOptions.path === SECURITY_PLUGIN_ACCOUNT_API - ) { + if (httpErrorResponse.response?.status === 401) { // Clears all user catalog cache details CatalogCacheManager.clearDataSourceCache(); CatalogCacheManager.clearAccelerationsCache();