I was doing a POST method and setting the http_body with the required NSData. In iOS 6, the response was being cached but this was not working in iOS 7.
So, now instead of setting http_body, we are appending the param in the url and making a request and caching is working now.