flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

How to keep stale file around?

Open tobinharris opened this issue 3 years ago • 1 comments

💬 Questions and Help

Hi there

I'm wanting to keep stale image files around so that, if the user is offline, the stale one is served rather than checking for a new one and then showing nothing (cause offline).

Obviously, if maxNrOfCacheObjects is exceeded then I would expect to see some files be removed, so this question assumes we're within the limit.

How best to achieve this?

Cheers

Tobin

tobinharris avatar Feb 28 '22 20:02 tobinharris

It is unclear to me if the cache is accessible if the network is offline. It appears that files cannot be retrieved when the network is offline. Is the true? Is there special configuration needed for offline use?

phildharmadr avatar Jul 25 '23 22:07 phildharmadr