Your server team now enabled the
ETag (server no change response
HTTP 304) then how could you identify that this is going fine with your app, now
NSURLConnection can do this, but not implicit. You need to do it by your way.
Nothing to worry just one line of code will do it.
NSMutableURLRequest *request = ...
request.cachePolicy = NSURLRequestReturnCacheDataElseLoad;
A very good article about
NSURLCache.
Don't forget to increase the cache size by
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:4 * 1024 * 1024
diskCapacity:20 * 1024 * 1024
diskPath:nil];
[NSURLCache setSharedURLCache:URLCache];
}