[
https://issues.apache.org/jira/browse/TS-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
CCN updated TS-2233:
--------------------
Description:
for example:
http://l.yimg.com/f/i/tw/hp/mh/12purple.gif (Logo of Yahoo Taiwan)
find out all ATS nodes
{noformat}
$ for i in {1..100}; do curl -I -s
'http://l.yimg.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Via' | sort | uniq
| sort
Via: http/1.1 l1.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l10.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l11.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l2.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l3.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l4.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l5.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l6.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l7.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l8.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l9.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
{noformat}
get Age of object in echo ATS node
{noformat}
$ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
Age: 49602
Age: 48682
Age: 257504
Age: 44458
Age: 261830
Age: 270660
Age: 43318
Age: 253053
Age: 210397
Age: 500315
Age: 268288
{noformat}
send a request with Accept Header does not match response Content-Type
{noformat}
$ for i in {1..11}; do curl -H 'Accept: text/html' -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif' > /dev/null; done
{noformat}
get Age of object in echo ATS node (again)
{noformat}
$ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 1
Age: 1
Age: 1
Age: 1
{noformat}
was:
for example:
http://l.yimg.com/f/i/tw/hp/mh/12purple.gif (Logo of Yahoo Taiwan)
find out all ATS nodes
$ for i in {1..100}; do curl -I -s
'http://l.yimg.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Via' | sort | uniq
| sort
Via: http/1.1 l1.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l10.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l11.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l2.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l3.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l4.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l5.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l6.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l7.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l8.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
Via: http/1.1 l9.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
get Age of object in echo ATS node
$ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
Age: 49602
Age: 48682
Age: 257504
Age: 44458
Age: 261830
Age: 270660
Age: 43318
Age: 253053
Age: 210397
Age: 500315
Age: 268288
send a request with Accept Header does not match response Content-Type
$ for i in {1..11}; do curl -H 'Accept: text/html' -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif' > /dev/null; done
get Age of object in echo ATS node (again)
$ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 2
Age: 1
Age: 1
Age: 1
Age: 1
> response Content-Type does not match request Accept header will cause cache
> be purged
> -------------------------------------------------------------------------------------
>
> Key: TS-2233
> URL: https://issues.apache.org/jira/browse/TS-2233
> Project: Traffic Server
> Issue Type: Bug
> Components: Cache, MIME
> Reporter: CCN
>
> for example:
> http://l.yimg.com/f/i/tw/hp/mh/12purple.gif (Logo of Yahoo Taiwan)
> find out all ATS nodes
> {noformat}
> $ for i in {1..100}; do curl -I -s
> 'http://l.yimg.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Via' | sort |
> uniq | sort
> Via: http/1.1 l1.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l10.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l11.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l2.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l3.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l4.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l5.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l6.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l7.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l8.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> Via: http/1.1 l9.ycs.tw1.yahoo.com (ApacheTrafficServer/3.2.0)
> {noformat}
> get Age of object in echo ATS node
> {noformat}
> $ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
> 'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
> Age: 49602
> Age: 48682
> Age: 257504
> Age: 44458
> Age: 261830
> Age: 270660
> Age: 43318
> Age: 253053
> Age: 210397
> Age: 500315
> Age: 268288
> {noformat}
> send a request with Accept Header does not match response Content-Type
> {noformat}
> $ for i in {1..11}; do curl -H 'Accept: text/html' -H 'Host: l.yimg.com' -s
> 'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif' > /dev/null; done
> {noformat}
> get Age of object in echo ATS node (again)
> {noformat}
> $ for i in {1..11}; do curl -I -H 'Host: l.yimg.com' -s
> 'http://l'$i'.ycs.tw1.yahoo.com/f/i/tw/hp/mh/12purple.gif'; done | grep 'Age:'
> Age: 2
> Age: 2
> Age: 2
> Age: 2
> Age: 2
> Age: 2
> Age: 2
> Age: 1
> Age: 1
> Age: 1
> Age: 1
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira