I'm getting data from backend using AFNetworking and set request's cachePolicy
as NSURLRequestUseProtocolCachePolicy
.
The response headers contain ETag value and Transfer-Encoding
is chunked
.
In the second time I call the same API, it gets the fresh data instead of getting from cache as expected.
I notice that if the response is not chunked (contain Content-Length
header), caching work perfectly
My question is: is it possible to cache chunked
response in iOS?
Thank you for any advice