Skip to content

Commit

Permalink
* Remove callResponseInterceptorsAfterNotModified from cacheoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-vrt committed Nov 23, 2023
1 parent fb6c490 commit 68dd119
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dio_cache_interceptor/lib/src/model/cache_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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@';

Expand All @@ -95,7 +91,6 @@ class CacheOptions {
this.priority = CachePriority.normal,
this.cipher,
this.allowPostMethod = false,
this.callResponseInterceptorsAfterNotModified = false,
required this.store,
});

Expand Down Expand Up @@ -124,7 +119,6 @@ class CacheOptions {
CacheStore? store,
Nullable<CacheCipher>? cipher,
bool? allowPostMethod,
bool? callResponseInterceptorsAfterNotModified,
}) {
return CacheOptions(
policy: policy ?? this.policy,
Expand All @@ -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,
);
}
}

0 comments on commit 68dd119

Please sign in to comment.