Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
739 stars 427 forks source link

How to keep stale file around? #363

Open tobinharris opened 2 years ago

tobinharris commented 2 years ago

💬 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

phildharmadr commented 11 months ago

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?