flutter_cache_manager
flutter_cache_manager copied to clipboard
How to keep stale file around?
💬 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
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?