rs/SDWebImage — pull request #211 by herrernst (2012-11-05 16:48:16+00:00)
Title: Prevent caching of responses in Cache.db

It seems that since iOS 5.0, URL responses also get cached in a file named Cache.db:
http://petersteinberger.com/blog/2012/nsurlcache-uses-a-disk-cache-as-of-ios5/

Because SDWebImage will/can also cache images, you end up using twice the disk space (and IO).

Here are two screenshots showing this behaviour on the simulator and on the device:

http://i.imgur.com/6c2Cv.jpg
http://i.imgur.com/3xWFC.png

I've added a delegate method implementation to avoid caching in Cache.db. Feel free to merge or adopt.