[ 
https://issues.apache.org/jira/browse/TS-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14971096#comment-14971096
 ] 

ASF GitHub Bot commented on TS-3978:
------------------------------------

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.


> Allow empty document caching to follow normal logic
> ---------------------------------------------------
>
>                 Key: TS-3978
>                 URL: https://issues.apache.org/jira/browse/TS-3978
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Cache
>            Reporter: Felicity Tarnell
>
> Currently, allow_empty_doc only works if the origin sends a content-length 
> header.  It should have a setting to enable empty documents to be cached in 
> the normal way without any special handling.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to