title: Does NSURLConnection take advantage of NSURLCache?
body: <p>I'm trying to figure out how to use the URL loading framework to load URLs taking advantage of caching.</p>
  
  <p>I am using NSURLConnections and feeding them NSURLRequests.  I have even set the cachePolicy on those requests to NSURLRequestReturnCacheDataElseLoad.  The first time I load a request, it does automatically get put in the cache (<code>[NSURLCache sharedCache]</code> has it).  But the next time I load the same request, the NSURLConnection seems to ignore what's in the cache and reload the data.</p>
  
  <p>Am I supposed to be manually implementing cache lookups and returning cached data?  Does NSURLConnection not do this?  Or is there some way to get the framework to use the cache seamlessly?</p>
  
  <p><strong>UPDATE:</strong> Tried the following without success:</p>
  
  <ul>
  <li>Setting the request cache policy to <code>NSURLRequestReturnCacheDataElseLoad</code> instead of <code>NSURLRequestUseProtocolCachePolicy</code></li>
  <li>Re-using the request object instead of making a new one</li>
  <li>Using <code>+[NSURLConnection sendSynchronousRequest:returningResponse:error:]</code> instead of loading asynchronously</li>
  </ul>