title: Alamofire loading from cache even when cache policy set to ReloadIgnoringLocalAndRemoteCacheData
body: <p>I set cache policy to request in Alamofire to ignore local cache.</p>
  
  <p>Then I load a viewcontroller with network connection, then I disconnect network connection, kill the app and run it again.</p>
  
  <p>Now no network  available error is not shown(ie alamofire doesnt create nserror object) created, instead app runs as if the request succeeded  getting data from cache obviously.And the odd thing is the when I tried to inspect the cached data using </p>
  
  <pre><code>NSURLCache.sharedURLCache().cachedResponseForRequest(request)
  </code></pre>
  
  <p>nil is returned eventhough the data was from cache ..</p>
  
  <p>The only way I could prevent cached responses is perform                     <code>NSURLCache.sharedURLCache().removeAllCachedResponses()</code></p>
  
  <pre><code>    let request = NSURLRequest(URL: NSURL(string: url)!, cachePolicy: NSURLRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 100)
  
      Alamofire.manager.request(method, request, parameters:params)
      .responseJSON { (request, response, data, error) in
          if let anError = error {
              if anError.code == NSURLErrorNotConnectedToInternet {
                  UIAlertView(title: "Alert", message: "No Network Connection Available", delegate: nil, cancelButtonTitle: "ok").show()
              }    
  
          } else if let data: AnyObject = data {
              println(NSURLCache.sharedURLCache().cachedResponseForRequest(request))
   //prints nil
  
      }
  
  } 
  }
  </code></pre>
  
  <p>What I want to do is load data from cache only if network connection is not available, something like limited offline mode.How to do this?</p>