cacois/TweetView — pull request #2 by leocadiotine (2012-04-11 02:47:06+00:00)
Title: This improves the cache by using an expiration date. A new version of...

...the bitmap is only downloaded if the local version is expired.

The other important improvement is: *before* downloading the file from the server, the code now checks if the file has been modified.

If it wasn't modified, this code doesn't download a new file, which should be a clone of the cached one. Instead, it uses the already downloaded one.

Another improvement (not directly related to cache) is to add a default drawable to be put on the ImageViews while the image is being downloaded. This way, the user won't see a blank image until the real one is shown.