trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ming.zym@gmail.com" <ming....@gmail.com>
Subject Re: Was a request cached
Date Fri, 31 Dec 2010 02:36:03 GMT
aho, always think in TS, seems forget the common style. :D

在 2010-12-30四的 18:24 -0800,Eric Balsa写道:
> One can look at the Age header on the response too.
> 
> Eric
> 
> On Dec 30, 2010 6:13 PM, "ming.zym@gmail.com" <ming.zym@gmail.com>
> wrote:
> > TS will show much than you want, I think there is at least 3
> solution:
> > 1, you can enable Squid Style logging:
> > CONFIG proxy.config.log.squid_log_enabled INT 1
> > then use "traffic_logcat squid.blog" and "grep" your logs, the
> output is
> > the standard Squid log style.
> > 
> > 2, you may enable VIA headers, which is disabled by default in later
> > unstable release, but that is a great tool:
> > CONFIG proxy.config.http.insert_response_via_str INT 1
> > all response will get a special VIA header, please following
> >
> http://trafficserver.apache.org/docs/v2/admin/trouble.htm#interpret_via_header
> > to decode the header.
> > 
> > 3, you can even setup a cache looking http ui by:
> > * traffic_line -s proxy.config.http_ui_enabled -v 3
> > * traffic_line -s proxy.config.http.enable_http_info -v 1
> > and setup some special remap target:
> > map http://localhost/cache-internal/ http://{cache-internal}
> > map http://localhost/cache/ http://{cache}
> > map http://localhost/stat/ http://{stat}
> > map http://localhost/test/ http://{test}
> > map http://localhost/hostdb/ http://{hostdb}
> > map http://localhost/net/ http://{net}
> > map http://localhost/http/ http://{http}
> > replace localhost with your situation.
> > then you will get a cool tool to invest in cache status by web. this
> is
> > the coolest way.
> > 
> > FYI
> > 
> > 
> > 在 2010-12-30四的 12:32 -0800,John Cheng写道:
> >> This may be a silly question, but I could not find out how to
> >> determine if a request was served from ATS' cache or not.
> >> 
> >> I want to make sure a particular Web Service URL is cached so our
> >> development team can code against it without making actual requests
> to
> >> the origin server (out of consideration for the origin system).
> >> 
> >> I have added the following in the cache.config file
> >> 
> >> url_regex=www.example.* action=ignore-server-no-cache
> >> url_regex=www.example.* ttl-in-cache=24h
> >> dest_domain=www.example.com action=ignore-server-no-cache
> >> dest_domain=www.example.com ttl-in-cache=24h
> >> 
> >> I believe this should force ATS to cache all URLs from
> >> www.example.com. However, I'm not sure how I can see if a
> particular
> >> request was served from cache or not. Is there a logging option
> that
> >> will show this?
> >> 
> > 
> > 
> 



Mime
View raw message