llfbandit / dio_cache_interceptor

Dio HTTP cache interceptor with multiple stores respecting HTTP directives (ETag, Last-Modified, Cache-Control) with options.
https://pub.dev/packages/dio_cache_interceptor
120 stars 70 forks source link

Validate request cache duration. #152

Open danieltchaves opened 7 months ago

danieltchaves commented 7 months ago

Adjusted the condition to correctly check if a cache entry is stale when maxStale is specified in the request.