trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yongming Zhao <ming....@gmail.com>
Subject Re: Rare HIT
Date Tue, 05 Nov 2013 15:48:30 GMT
hmm, I don’t know if you have changed the default  proxy.config.http.cache.required_headers
 from 2 to 1 or 0.
if you don’t change it, your content is not save-able.

FYI:
  # required headers: three options:
  #   0 - No required headers to make document cachable
  #   1 - "Last-Modified:", "Expires:", or "Cache-Control: max-age" required
  #   2 - explicit lifetime required, "Expires:" or "Cache-Control: max-age"
CONFIG proxy.config.http.cache.required_headers INT 2

according to your response headers, there is only Last-Modified header there.

HTTP/1.1 200 OK
X-Object-Meta-Sha1base36: 9kc3dr2c3fh1hycxgf801zqrce1tpxp
Last-Modified: Sat, 14 Jul 2012 06:53:57 GMT
Etag: 6d71a06de183c0852e6381167d24da54
X-Timestamp: 1342248837.75819
Content-Type: image/jpeg
X-Varnish: 3794896966, 2272015735
Via: 1.1 varnish, 1.1 varnish
Content-Length: 2738295
Accept-Ranges: bytes
Date: Tue, 05 Nov 2013 15:39:56 GMT
Age: 1
Connection: keep-alive
X-Cache: cp1049 miss (0), cp1048 frontend miss (0)
Access-Control-Allow-Origin: *




在 2013年11月5日,下午4:01,Omid Kosari <omidkosari@yahoo.com> 写道:

> I am trying to test ATS performance . In a normal test i checked several urls
> with three browsers and looking in /var/log/trafficserver/squid.log .
> for example i loaded following url one time with firefox , another time with
> google chrome and another time with IE .
> http://upload.wikimedia.org/wikipedia/commons/2/28/Clouds_Blue_Sky_001.jpg
> 
> but image does not come from cache and squid.log shows this
> 
> 1383637874.187 37778 123.123.123.123 TCP_MISS/200 2738848 GET
> http://upload.wikimedia.org/wikipedia/commons/2/28/Clouds_Blue_Sky_001.jpg -
> DIRECT/upload.wikimedia.org image/jpeg -
> 1383637952.337 29747 123.123.123.123 TCP_MISS/200 2738857 GET
> http://upload.wikimedia.org/wikipedia/commons/2/28/Clouds_Blue_Sky_001.jpg -
> DIRECT/upload.wikimedia.org image/jpeg -
> 1383638049.731 80367 123.123.123.123 TCP_MISS/200 2738797 GET
> http://upload.wikimedia.org/wikipedia/commons/2/28/Clouds_Blue_Sky_001.jpg -
> DIRECT/upload.wikimedia.org image/jpeg -
> 
> I also checked small images , downloading exe files , checking several
> different urls etc .
> 
> The only HITs i can see are TCP_IMS_HIT/304  and TCP_REFRESH_HIT/304 
> 
> 
> 
> --
> View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Rare-HIT-tp11.html
> Sent from the Apache Traffic Server mailing list archive at Nabble.com.


Mime
View raw message