Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to force reload of certain images. #42

Open
ramsestom opened this issue Aug 10, 2017 · 3 comments
Open

Add option to force reload of certain images. #42

ramsestom opened this issue Aug 10, 2017 · 3 comments
Labels
feature A new feature to add.

Comments

@ramsestom
Copy link

ramsestom commented Aug 10, 2017

Is there any way to force a specific uri to be removed from the cache (so that it would be necessarily fetch the next time an image source point to this uri)?
This is because I have a user avatar that always point to the same url for a specific user so I want to be able to clean the cache for this avatar picture each time the user actually change its avatar.

@ramsestom ramsestom changed the title force an entry to be removed from the cache Aug 10, 2017
@DylanVann
Copy link
Owner

Ideally you'd use an immutable url for avatars.

  • Lookup user object that has an immutable avatar url property.
  • Display using FastImage

Alternatively:

  • Use a non-immutable avatar url.
  • Use Image.
@DylanVann DylanVann changed the title force an entry to be removed from the cache? Nov 6, 2017
@DylanVann DylanVann added the feature A new feature to add. label Nov 6, 2017
@ghost
Copy link

ghost commented Dec 26, 2020

Do I need react-native-fast-image for Images loaded from File System does it Improve the performance even for downloaded Images? or it is only helpful for Images loading from web ?

@noahgels
Copy link

Do I need react-native-fast-image for Images loaded from File System does it Improve the performance even for downloaded Images? or it is only helpful for Images loading from web ?

No.
It's just a way to avoid having to download the images every time. Saving them in cache would just store them a second time on the device and waste storage. Loading from the device is always much faster than from web, no matter where it's saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to add.
3 participants