I am using picasso to fetch images from server.
This is what i am using.
Picasso.with(getApplicationContext()).load(imageURL)
.placeholder(R.drawable.card_loading)
.fit().centerCrop()
.into(imageView);
The above code should cache
the images, but when i update the same image on server, without changing its URL
, it starts displaying the new image on app, whereas it should display the cached
old image on the app.
In some devices it was displaying the older images, i closed and restart the app multiple times, then it started displaying the new images on those devices as well.
My Question is that how long picasso
keep an image in cache, and how can i increase this from server or client