Github user sudheerv commented on the pull request:
https://github.com/apache/trafficserver/pull/310#issuecomment-150595466
Hmm..the requirement in the jira certainly seems reasonable, but, the
current state of this is mainly to ensure ATS is not caching broken responses
(connection failure in the middle of download).
Allowing to cache the empty docs only when Content-Length=0 indirectly
ensures that the response was not broken. So, the patch must somehow ensure
that the response is not broken, otherwise, there's a danger of caching invalid
responses.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---