NSURLCache
NSURLCache
- Subject: NSURLCache
- From: Rick Mann <email@hidden>
- Date: Mon, 25 Apr 2011 21:03:24 -0700
I'm trying to use an NSURLCache. I want to use one I create, just for this, rather than make it the shared cache.
(I'm also using the MVCNetworking classes to load resources, so I don't have a lot of access to the underlying NSHTTPURLRequests, etc.)
What I'm seeing is that after storing into the cache, the thing I just stored is not there. I even tried reading it out immediately after adding it, to make sure it wasn't an issue with the request I use as the key. No dice (there's also a note in the sample code about it taking some time to write to disk, so that may be part of that).
The CacheInfo sample code never seems to explicitly store the results in the cache, but it does explicitly try to get them out of the cache.
One of the other things it's doing differently than I do is it creates an NSURLRequest using a cache policy. I just create a plain NSURLRequest. Is that a necessary step?
Thanks,
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden