Gif images always load from network #872
Unanswered
qwaskhaled
asked this question in
Q&A
Replies: 2 comments 2 replies
-
It's likely the cache control header for the image isn't allowing it to be cached in the disk cache. If you control the server, you can ask them to change the |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have similar issue. How did you solve it? (Cache-control doesn't work either) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using gif decoders to support gif loading. However, I am having an issue that the gif images always keep loading from the network instead of memory or disk after the first time they get fetched from the server
I expect the images loader to load the gif image from the network one time and then fetch it from disk or cache when it's needed again.
To replicate the issue create a recycler view that contains gif images and start scrolling it. You will notice the same images will gets loaded again from the network.
I am using Android 11 and the library version 1.3.2. It's worth mentioning that I have enabled the disk caching policy and it works fine for all images except for git.
Is there anyway I can reslove that?
Beta Was this translation helpful? Give feedback.
All reactions