AFNetworking - How works cache time for requests and images?

Viewed 1218

I'm using the AFNetworking framework for iOS.

  1. The cache is controlled by the HTTP response header?
    • If yes, it is based on the headers 'Cache-Control' and 'Expires' for normal requests?
    • If not, how caching works?
  2. You can customize the cache time and fixed it in 1 day, regardless of the HTTP response headers?
  3. If there is image cache, it is stored on disk or saved to memory?
  4. The cache requests work when the device has no internet connection?
    • The user makes a request but the device showed no internet connection and the request was suspended. You can ignore the same requests when the device returns to its internet connection?
  5. The only way my application would work offline using database or can be based on the system cache of this framework?
  6. You can change the timeout of requests without having to customize a 'NSURLRequest'?
1 Answers
Related