-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
If loading an image fails with maxHeightDiskCache specified, errorWidget will not be called next time. #980
Comments
Same problem here. Mine happens in
Edit: |
+1 any solution? |
It happens for me too, I tried to delete using DefaultCacheManager() but it doesn't work. |
The problem is here in image_cache_manager.dart line 47
The last failed runningResize is cached here in this List, I guess it should be removed when an exception occurs. So that's why the next time when you try to the load the Image, A fix should be something for line 74
Adding _runningResizes.remove(key), before returning the original file. Other fix
At line 132 add this code after evicting the image
@renefloor maybe you can take a look |
🐛 Bug Report
As the title says, if CachedNetworkImage with maxHeightDiskCache (or maxWidthDiskCache) fails to load an image (403, etc.), errorWidget is called the first time, but not the next time.
I think it is probably due to the fact that the image that failed to load is cached, but is there a solution?
I would like to add that I have tried deleting the cache, but it is not possible to do so.
Thanks for the answer.
Expected behavior
Images that fail to load are not cached.
Reproduction steps
Configuration
Version:
Platform:
The text was updated successfully, but these errors were encountered: