hurshi / dio-http-cache

http cache lib for Flutter dio like RxCache
Apache License 2.0
274 stars 223 forks source link

Caching is not working when the responseType other than json. #65

Closed anotherglitchinthematrix closed 3 years ago

anotherglitchinthematrix commented 3 years ago

When configuring the Dio with the BaseOptions I need to use responseType: ResponseType.bytes but caching is not working in that case. It wasn't curicial for my use case, but in the future this behaviour may be improved.

hurshi commented 3 years ago

Thanks for your issue. And yes, only json is supported. The dio-http-cache is similar to SharedPreference, not designed for large files.