[ 
https://issues.apache.org/jira/browse/TS-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call updated TS-2542:
---------------------------

    Summary: Turn on caching zero length responses by default  (was: Turn on )

> Turn on caching zero length responses by default
> ------------------------------------------------
>
>                 Key: TS-2542
>                 URL: https://issues.apache.org/jira/browse/TS-2542
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>            Reporter: Bryan Call
>             Fix For: 5.0.0
>
>
> 301 response is not being cached in forward proxy mode if content length is 
> zero bytes.
> Test with a zero byte content length - doing multiple requests:
> [bcall@mac-bryan-wire ~]$ curl -x homer:8080 -D - -o /dev/null -s 
> http://homer.bryancall.com/301.php
> HTTP/1.1 301 Moved Permanently
> Date: Wed, 29 Jan 2014 23:44:03 GMT
> Server: ATS
> X-Powered-By: PHP/5.5.7
> Location: http://www.yahoo.com/
> Content-Length: 0
> Content-Type: text/html; charset=UTF-8
> Age: 0
> Proxy-Connection: keep-alive
> Via: http/1.1 homer.bryancall.com (ApacheTrafficServer/4.2.0 [uScMsSfWpSeN:t 
> cCMi p sS])
> Is cached if the content length is non-zero:
> [bcall@mac-bryan-wire ~]$ curl -x homer:8080 -D - -o /dev/null -s 
> http://homer.bryancall.com/301.php
> HTTP/1.1 301 Moved Permanently
> Date: Wed, 29 Jan 2014 23:48:11 GMT
> Server: ATS
> X-Powered-By: PHP/5.5.7
> Location: http://www.yahoo.com/
> Content-Length: 4
> Content-Type: text/html; charset=UTF-8
> Age: 7
> Proxy-Connection: keep-alive
> Via: http/1.1 homer.bryancall.com (ApacheTrafficServer/4.2.0 [uScHs f p eN:t 
> cCHi p s ])



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to