-
Notifications
You must be signed in to change notification settings - Fork 377
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
Xamarin Forms: FFImageLoading caches dead or failed links #40
Comments
Do you have a custom configuration when you initialize the lib? |
No custom config - this issue occurred for me on iOS, I have not set up Android for this. I am using the CachedImage class in XF, and initializing the ImageService within the iOS appdelegate |
@patook could you please send some URL that cause this issue?
|
@molinch Thanks: I suspect the error that happened is that HttpConnection limit was reached. I got a debug message saying that URL was being queued. As I mentioned, I am requesting 24 images simultaneously from the same server. Also, I can make the change and download your code instead of using nuget but it might be nice if you have an option to never cache empty/zero bytes. |
Still even if you have simultaneous requests it should not do that. I would rather fix that. |
@patook Any news? |
@patook I cannot reproduce so if I don't have news I will close this issue. |
Hi Fabien, Sorry I ended up switching to a different image grabbing system since I had to push out the app urgently. The way I had reproed it was by fetching 24 images from the same domain. One of them failed to download (which is fine) but then the empty image was cached. Best From: Fabien Molinet [mailto:notifications@github.com] @patook https://github.com/patook I cannot reproduce so if I don't have news I will close this issue. — |
I don't have this issue and there is no sample to reproduce so I close it. |
I was trying to test it too. Couldn't reproduce it. So it's safe to close it for now. |
If I try to load 20 images from the same server and one of them doesn't respond (even with .Retry(3,2000)), that dead image gets cached.
Is there a way to make sure only good images get cached? I am using Xamarin Forms.
The text was updated successfully, but these errors were encountered: