Search code examples
androidpicasso

Picasso image loader: loading updated images from url


I'm using Picasso to load images. Some images come from a URL, but sometimes that images change on the server, keeping the same name. So, does Picasso understand if the cached images are out of date, even if they have the same file name? Or it just checks if the file name is the same of the one in cache?

Thank you


Solution

  • Picasso is a standards-compliant HTTP client library. It checks for HTTP response cache headers for cache validation. If your server is adding the proper headers to your resources then Picasso will handle cache invalidation like a champ.