I'm working on an app using backend server I have no control over. Server response have headers
"Cache-Control" = "max-age=0, private, no-store, no-cache, must-revalidate";
Expires = "Fri, 20 Jun 2014 09:00:39 GMT";
among others, but both these values are wrong, the response should be cached for 15mins. I've searched and found what seems to be a solution to this, i.e. here Bypassing http response header Cache-Control: how to set cache expiration?
But it's not working for me, - storeCachedResponse: forRequest: is never being called. I'm also setting NSURLRequestReturnCacheDataElseLoad on a request.
Any idea on what I might be doing wrong would be greatly appreciated!