I'm trying to find out how can I clear cache of a specific URL or make Picasso notice for the server side's image change. Can someone help me with this?
Jake Wharton replied on Dec 12, 2014 that the best candidate solution to be in 2.5 milestone is:
picasso.load('http://example.com/')
.cachePolicy(NO_CACHE, NO_STORE)
.networkPolicy(NO_CACHE, NO_STORE, OFFLINE)
.into(imageView);
enum MemoryPolicy {
NO_CACHE, NO_STORE
}
enum NetworkPolicy {
NO_CACHE, NO_STORE, OFFLINE
}
update
or now you can use:
Picasso.with(getActivity()).invalidate(file);
as answered by mes in this answer
Answer from Jake Wharton.
You can't [do this]. But we're going to add it: github.com/square/picasso/issues/438
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With