RestKit/RestKit — pull request #888 by angelolloqui (2012-08-10 13:12:19+00:00)
Title: Implemented new cache policy to use the Cache-Control HTTP header

This adds basic cache control policy. Now, before making a request, it checks if the "Cache-Control" was set in the last cached request and checks if the "max-age" was set and is still valid. If it wasn't set or is not longer valid, it continues checking the rest of the policies.

Note that the default caching behaviour has not been changed, so no problems derived from this pull request so appear.

In our case, this change is very important because our app does a lot of small requests which could be cached depending on some internal information contained on the server side.

Hope it helps to other devs!