flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Add option to invalidate Cache without clearing it.

Open wxsdmy opened this issue 5 years ago • 11 comments

When image changed with same url, the image widget doesn't download the new image. I don't want to clear the cache, because we want it to load the cache image first if the image is loading. It would be better if your add some options to refresh cache from remote location if needed, just like iOS SDK SDWebImage.

wxsdmy avatar May 22 '20 03:05 wxsdmy

Same issue here, any workaround?

omartinma avatar Jul 06 '20 08:07 omartinma

Same for me, can't force reload an image with same url ...

ghost avatar Jul 17 '20 09:07 ghost

any update facing the same issue

naikdp7 avatar Jul 20 '20 10:07 naikdp7

any update?

IBM9100 avatar Aug 12 '20 08:08 IBM9100

Have you found some workaround or do you have any plan to fix it ?

baptistecassar avatar Aug 18 '20 15:08 baptistecassar

I am looking for something similar as well!

Albert-Jan avatar Sep 04 '20 18:09 Albert-Jan

Found a workaround. At the moment I load the image with a non-functional unique parameter, so the image gets reloaded.

downloadURL+'?d='+DateTime.now().millisecondsSinceEpoch.toString()

Albert-Jan avatar Sep 05 '20 14:09 Albert-Jan

PR #462 fixes the issue when you just want to load a new image. We could still add a method to invalidate the cache without clearing it, but I think we still need to completely evict it from the ImageCache.

renefloor avatar Sep 10 '20 09:09 renefloor

Same issue here

JosephNK avatar Dec 23 '20 19:12 JosephNK

Same issue here...

pablo-johnson avatar Mar 06 '21 22:03 pablo-johnson

Found a workaround. At the moment I load the image with a non-functional unique parameter, so the image gets reloaded.

downloadURL+'?d='+DateTime.now().millisecondsSinceEpoch.toString()

This is a neat trick, but I feel like the library should be watching for cache invalidations and reload the image if it changes.

Hackmodford avatar Jul 15 '22 00:07 Hackmodford