title: Alamofire - NSURLCache is not working?
body: <p>I set my cache as below</p>
  
  <pre><code>var cacheSizeMemory = 20 * 1024 * 1024
  var cacheSizeDisk = 100 * 1024 * 1024
  var sharedCache = NSURLCache(memoryCapacity: cacheSizeMemory, diskCapacity: cacheSizeDisk, diskPath: "SOME_PATH")
  NSURLCache.setSharedURLCache(sharedCache)
  </code></pre>
  
  <p>Create request with cache policy</p>
  
  <pre><code>var request = NSMutableURLRequest(URL: NSURL(string: "\(baseUrl!)\(path)")!, cachePolicy: .ReturnCacheDataElseLoad, timeoutInterval: timeout)
  </code></pre>
  
  <p>Make a request and get a response with following <code>Cache-Control</code> <code>private, max-age=60</code></p>
  
  <p>Then try to check the cache</p>
  
  <pre><code>var cachedResponse = NSURLCache.sharedURLCache().cachedResponseForRequest(urlRequest)
  </code></pre>
  
  <p>value is nil</p>
  
  <p>Any thoughts?</p>