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.
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?
💬 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