title: iOS - Is it possible to cache the chunked HTTP response?
body: <p><br>
  I'm getting data from backend using AFNetworking and set request's <code>cachePolicy</code> as <code>NSURLRequestUseProtocolCachePolicy</code>. <br>
  The response headers contain ETag value and <code>Transfer-Encoding</code> is <code>chunked</code>. <br>
  <img src="https://i.stack.imgur.com/8NMdw.png" alt="Chunked Response"></p>
  
  <p>In the second time I call the same API, it gets the fresh data instead of getting from cache as expected. <br></p>
  
  <p>I notice that if the response is not chunked (contain <code>Content-Length</code> header), caching work perfectly <br>
  <img src="https://i.stack.imgur.com/32diF.png" alt="not chunked response"> </p>
  
  <p>My question is: <strong>is it possible to cache <code>chunked</code> response in iOS</strong>? <br>
  Thank you for any advice</p>