candlefinance / faster-image

Fast image loading for React Native backed by performant native libraries.
https://candle.fi/discord
MIT License
594 stars 28 forks source link

[Question] Differences between cache types #52

Closed rrosatti closed 3 months ago

rrosatti commented 3 months ago

Cache types

Hey guys. First of all, thanks for the nice library. I just bumped into it while trying to find an alternative for the very well known "fast image" library :)

I tried to find in the library some documentation regarding the differences between the cache types ('memory' | 'discWithCacheControl' | 'discNoCacheControl'), but I couldn't. If this is written down somewhere and I didn't find, could someone point it out to me, please?

alexander126 commented 3 months ago

Heres what the documentation states about the cache types [cachePolicy] - Cache [policy](https://kean-docs.github.io/nuke/documentation/nuke/imagepipeline), defaults to 'memory'. 'discWithCacheControl' will cache the image in the disc and use the cache control headers to determine if the image should be re-fetched. 'discNoCacheControl' will cache the image in the disc and never re-fetch it.

rrosatti commented 3 months ago

nice, thank you @alexander126!