- 论坛徽章:
- 0
|
squid并没有把内容cache住,请教何原因?
下面是 wget从squid服务器取一个URL,结果两次都是 MISS from abc_cacheNO.2824
第一次的 HTTP/1.0 302 Moved Temporarily 我甚至不知道为何会存在!
直接从apache取的话,从来不会反应说什么302。
wget -S --spider http://www.abc.com/dateXXX/itemYYY
--00:00:38-- http://www.abc.com/dateXXX/itemYYY
=> `itemYYY'
Connecting to www.abc.com:80... 已连接。
已发出 HTTP 请求,正在等待回应...
HTTP/1.0 302 Moved Temporarily
Date: Tue, 21 Aug 2007 16:00:27 GMT
Server: Apache
Location: http://www.abc.com/dateXXX/itemYYY
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from abc_cacheNO.2824
Connection: keep-alive
位置:http://www.abc.com/dateXXX/itemYYY [跟随至新的 URL]
--00:00:38-- http://www.abc.com/dateXXX/itemYYY
=> `itemYYY'
正在解析主机 www.abc.com... www.abc.com, 59.151.28.25
Connecting to www.abc.com|www.abc.com|:80... 已连接。
已发出 HTTP 请求,正在等待回应...
HTTP/1.0 200 OK
Date: Tue, 21 Aug 2007 16:00:38 GMT
Server: Apache
X-Powered-By: PHP/5.1.2
Set-Cookie: PHPSESSID=rfddbdgpb7c7sdoma6rfust050; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: s-maxage=0, must-revalidate, max-age=0
Pragma: no-cache
Content-Language: zh-cn
ETag: W/"pucdb:pcache:idhash:226110-0!1!0!0!!zh-cn!2--20061004140601"
Vary: Accept-Encoding,Cookie
Surrogate-Control: max-age=18000+18000, content="ESI/1.0"
Last-Modified: Thu, 02 Aug 2007 18:46:08 GMT
Content-Type: text/html; charset=utf-8
X-Cache: MISS from abc_cacheNO.2824
Connection: keep-alive
长度:未指定 [text/html]
200 OK
[ 本帖最后由 zhouyong488 于 2007-8-22 00:10 编辑 ] |
|