Hua Su :
> Hi,
> Is there any way to check whether a URL is cached or not? Thanks!
> 
Yes, to watch the http headers of a response.
For example, when request news.163.com we could get these headers:
(Status-Line)	HTTP/1.0 200 OK
Age	31
Cache-Control	max-age=70
Connection	close
Content-Encoding	gzip
Content-Type	text/html; charset=GBK
Date	Fri, 22 May 2009 12:29:21 GMT
Expires	Fri, 22 May 2009 12:30:31 GMT
Last-Modified	Fri, 22 May 2009 12:28:05 GMT
Server	nginx/0.7.39
Vary	Accept-Encoding
Via	172.16.80.162.nginx, 1.0 cache.163.com (squid/3.0.STABLE13)
X-Cache	HIT from cache.163.com
The last line means this url get cached.
-- Jeff Pang DingTong Technology www.dtonenetworks.comReceived on Fri May 22 2009 - 12:32:56 MDT
This archive was generated by hypermail 2.2.0 : Fri May 22 2009 - 12:00:01 MDT