diff --git a/lib/src/interceptors/cache_interceptor.dart b/lib/src/interceptors/cache_interceptor.dart index 0f6c2c8..47adb39 100644 --- a/lib/src/interceptors/cache_interceptor.dart +++ b/lib/src/interceptors/cache_interceptor.dart @@ -60,7 +60,8 @@ abstract class ApiCacheInterceptor extends Interceptor { ), ); if (!isValid) { - if (keyData['appSpecificHeaders']?['ignoreAutoRefresh'] ?? false) { + if (options.headers['appSpecificHeaders']?['ignoreAutoRefresh'] ?? + false) { return null; } refreshCache(options);