Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

seanhess

macrumors newbie
Original poster
Jan 2, 2008
24
0
Every time I call the following it returns a null object.

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.