flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

[Feature request] Add retry mechanism

Open JulianAssmann opened this issue 3 years ago • 1 comments

🚀 Feature Requests

A retry mechanism for when the initial download of a file over the network fails. This could be analogous to the fetch strategy implementation in the flutter_image package, supporting exponential backoff, timeouts and so on.

Contextualize the feature

This should be a feature of the CacheManager.getFileStream(...) method. An optional fetchStrategy parameter could be added, allowing to specify the timeouts, retry count and exponential backoff for the initial download.

Describe the feature

flutter_image already provides a good implementation of this feature.

Platforms affected (mark all that apply)

  • [x] :iphone: iOS
  • [x] :robot: Android

JulianAssmann avatar Oct 19 '21 10:10 JulianAssmann

when the retry mechanism can be used?

huakucha avatar Nov 23 '21 08:11 huakucha