不太明白TCP_IMS_HIT的意思
squid的access.log里的TCP_IMS_HIT,对它的解释是:客户端发送确认请求,Squid发现更近来的、貌似新鲜的请求资源的拷贝。Squid发送更新的内容到客户端,而不联系原始服务器。这个是不是说squid刚刚从后台web服务器更新了这个文件,更新完第一次有客户端请求这个文件,squid就把缓存发给它,以后再有客户端要访问这个文件的话,就是TCP_MEM_HIT了?
以下是我截取一段access.log的内容,为什么TCP_IMS_HIT会频繁的与TCP_MEM_HIT交替出现?
1245289965.300 0 60.176.2.30 TCP_IMS_HIT/304 239 GET http://www.abc.com/index.html - NONE/- text/html
1245289988.478 0 125.92.211.94 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290068.470 0 61.180.24.83 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290118.772 0 221.209.245.31 TCP_IMS_HIT/304 239 GET http://www.abc.com/index.html - NONE/- text/html
1245290146.033 0 222.182.173.211 TCP_IMS_HIT/304 239 GET http://www.abc.com/index.html - NONE/- text/html
1245290146.588 0 58.251.166.115 TCP_MEM_HIT/200 7257 GET http://www.abc.com/index.html - NONE/- text/html
1245290197.134 0 124.166.105.255 TCP_IMS_HIT/304 239 GET http://www.abc.com/index.html - NONE/- text/html
1245290334.068 9735 59.46.80.245 TCP_MEM_HIT/200 44648 GET http://www.abc.com/index.html - NONE/- text/html
1245290340.327 0 221.12.17.84 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290353.890 0 221.202.72.17 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290457.480 0 60.180.200.31 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290577.898 0 218.246.181.195 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290579.449 0 222.74.58.30 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290748.715 0 119.115.44.66 TCP_IMS_HIT/304 239 GET http://www.abc.com/index.html - NONE/- text/html
1245290793.349 0 60.191.56.90 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
1245290802.037 0 119.125.255.21 TCP_MEM_HIT/200 7262 GET http://www.abc.com/index.html - NONE/- text/html
[ 本帖最后由 sailer_sh 于 2009-6-18 10:08 编辑 ] TCP_IMS_HIT 请求时对IF-Modified-Since这种校验请求记录的日志,返回的状态码都是304.
TCP_MEM_HIT对应的不是校验请求,返回码是200.
交替出现就是因为客户端client请求中有的带了IMS头有的没带。挖坟 :-L
页:
[1]