From 68dd1198ec19e5e3309a552e96f6faed2a057907 Mon Sep 17 00:00:00 2001 From: Tristan Vanderaerden Date: Thu, 23 Nov 2023 10:12:57 +0100 Subject: [PATCH] * Remove callResponseInterceptorsAfterNotModified from cacheoptions --- dio_cache_interceptor/lib/src/model/cache_options.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dio_cache_interceptor/lib/src/model/cache_options.dart b/dio_cache_interceptor/lib/src/model/cache_options.dart index 417145c..40c146c 100644 --- a/dio_cache_interceptor/lib/src/model/cache_options.dart +++ b/dio_cache_interceptor/lib/src/model/cache_options.dart @@ -77,10 +77,6 @@ class CacheOptions { /// allow POST method request to be cached. final bool allowPostMethod; - /// handle not-modified status in response flow - /// This allows following response interceptors to still be called - final bool callResponseInterceptorsAfterNotModified; - // Key to retrieve options from request static const _extraKey = '@cache_options@'; @@ -95,7 +91,6 @@ class CacheOptions { this.priority = CachePriority.normal, this.cipher, this.allowPostMethod = false, - this.callResponseInterceptorsAfterNotModified = false, required this.store, }); @@ -124,7 +119,6 @@ class CacheOptions { CacheStore? store, Nullable? cipher, bool? allowPostMethod, - bool? callResponseInterceptorsAfterNotModified, }) { return CacheOptions( policy: policy ?? this.policy, @@ -137,8 +131,6 @@ class CacheOptions { store: store ?? this.store, cipher: cipher != null ? cipher.value : this.cipher, allowPostMethod: allowPostMethod ?? this.allowPostMethod, - callResponseInterceptorsAfterNotModified: - callResponseInterceptorsAfterNotModified ?? this.callResponseInterceptorsAfterNotModified, ); } }