Every time I call the following it returns a null object.
I've tried every combination of server-headers I can think of, and they don't seem to make any difference. My delegate's willCacheResponse method is being called, and I've even manually stored the cachedResponse in that method (even though I think by returning it, it is already going to be stored).
Even if I call cachedResponseForRequest RIGHT AFTER calling storeCachedResponse, it comes back null. Any idea what I'm doing wrong?
Here's a link to my full code:
http://pastie.org/808549
Code:
- (NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request
I've tried every combination of server-headers I can think of, and they don't seem to make any difference. My delegate's willCacheResponse method is being called, and I've even manually stored the cachedResponse in that method (even though I think by returning it, it is already going to be stored).
Even if I call cachedResponseForRequest RIGHT AFTER calling storeCachedResponse, it comes back null. Any idea what I'm doing wrong?
Here's a link to my full code:
http://pastie.org/808549