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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to