react-native-img-cache icon indicating copy to clipboard operation
react-native-img-cache copied to clipboard

[Question] How to set file expires

Open anhtuank7c opened this issue 7 years ago • 5 comments

Please show me how to control cached files expires.

Thank you so much.

anhtuank7c avatar Jun 12 '17 08:06 anhtuank7c

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.

Emilios1995 avatar Jun 19 '17 22:06 Emilios1995

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.

danny-does-stuff avatar Jul 14 '17 17:07 danny-does-stuff

Same, going to hold on using this lib until we can control cache expiration via headers or api

aaronbuchanan avatar Sep 24 '17 23:09 aaronbuchanan

Would love to see this introduced.

zachrnolan avatar Nov 06 '17 22:11 zachrnolan

I also would love this feature ! I've been jumping from lib to lib looking a cache that has expiration .

aalkhulaifi605 avatar Jan 23 '18 14:01 aalkhulaifi605