After I got a response
via Alamofire, in some cases, implementing a database or managing local storage myself (file etc.) can be a bit overkill.
I know about Alamofire's requestCachePolicy
and it is already caching responses (based on cache-control
's max-age
), but this has more to do with reducing the number of requests/improve the experience when online.
But is it possible to use the cached response when I have no connection available via Alamofire? (Does Alamofire provide some kind of convenient way to handle this)