Android Picasso cache with server image -


i have url link images, , image may change everyday link doesn't change.

my questions

in case, how picasso know image has changed , grab new image?

does picasso fires url call server every-time image being used , determine if image different or not?

picasso uses http headers caching, follows http caching specification. if server provides accurate headers, managed automatically. nicer explanation can check this google guide on caching


edit

direct answer:

yes, make request.

but...

you can configure picasso custom downloader using okhttp , manually decide not make request if have image on cache. particularly useful when dealing connection issues (i.e: no internet connection).

here answer how make custom downloader

and documentation okhttp interceptors


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -