Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Caching of empty docs is slightly trickier on ATS, since, it is not clear whether the empty body is a real empty response from the Origin server or a consequence of broken response (connection). Currently, this is controlled via a config setting allow_empty_doc with additional logic such as Content-Length=0 to make sure it's a valid empty response from Origin server.
The current logic however misses handling valid empty response with no Content-Length=0 header (e.g Chunked TE, SPDY/H2 outbound etc).
Opening jira to investigate how to safely (i.e ensuring the response is not a result of broken connection) remove the allow_empty_doc setting and to be able to generically cache empty docs similar to any other response.