Skip to content

Commit

Permalink
[CacheInterceptor] Fix auto refresh functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipin9821 authored and TusharFA committed Apr 1, 2024
1 parent 9c7f5a7 commit de80225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/interceptors/cache_interceptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de80225

Please sign in to comment.