How to load an image only from Cache (not from network)? #1214
Answered
by
Susheelkaram
vijayendra-tripathi
asked this question in
Q&A
-
I wish to read image instantly from cache if not available then I may request the image later from network. How can I use coil to only read from cache and not from network? |
Beta Was this translation helpful? Give feedback.
Answered by
Susheelkaram
Mar 8, 2024
Replies: 3 comments
-
@vijayendra-tripathi did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you can achieve this by setting |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
colinrtwhite
-
respectCacheHeaders(false) |
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 think you can achieve this by setting
networkCachePolicy(CachePolicy.DISABLED)