Bryan Call created TS-2542:
------------------------------
Summary: ATS doesn't cache 301 response if the content length is 0
Key: TS-2542
URL: https://issues.apache.org/jira/browse/TS-2542
Project: Traffic Server
Issue Type: Bug
Components: HTTP
Reporter: Bryan Call
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)