I'm using images generated by Drupal (drupal 7) to feed an application. I'm then caching those images in the app. I'm trying to figure out a way to determine if the image has been updated since the last download, is there anyway to access this information about an image, without actually loading the image?
You can use ETags - when the app receives an image, there will be an HTTP header that looks like:
Whenever the app wants to check for a new image, perform a GET request with this header:
If the file is unchanged, your web server will respond with HTTP 304 Not Modified status.