You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/02/26 01:26:20 UTC

[jira] [Resolved] (TS-2542) Turn on caching zero length responses by default

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

Leif Hedstrom resolved TS-2542.
-------------------------------

    Resolution: Fixed

> 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
>            Assignee: Leif Hedstrom
>             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)