react-native-img-cache
react-native-img-cache copied to clipboard
[Question] How to set file expires
Please show me how to control cached files expires.
Thank you so much.
I also have this question, @wcandillon.
Is the default behavior to persist the files until clear()
is called?
It would be nice to specify a ttl and have the library automatically delete the file.
This is the only piece missing that I would love to see! The cached images seem to be living forever right now. It would also be nice if you could set the image cache to conform to the http header Cache-Control
. i.e. If the server responds with a maxAge
for a specific image, then that image only lives for that amount of time.
Same, going to hold on using this lib until we can control cache expiration via headers or api
Would love to see this introduced.
I also would love this feature ! I've been jumping from lib to lib looking a cache that has expiration .