In iOS 7, I was able to set a shared URL cache to a subclass of NSURLCache
and any UIWebView
s I created would automatically use that shared cache for each request.
// Set the URL cache and leave it set permanently
ExampleURLCache *cache = [[ExampleURLCache alloc] init];
[NSURLCache setSharedURLCache:cache];
However, now in iOS 8 it doesn't seem like UIWebView pulls from the shared cache and cachedResponseForRequest
never gets called.
Has anyone found documentation for this change, or a workaround?