Chinaunix

标题: squid 反向代理无法缓存WEB服务器页面的问题 [打印本页]

作者: xxmxbtx    时间: 2007-03-16 00:23
标题: squid 反向代理无法缓存WEB服务器页面的问题
我的squid.conf配置如下:

refresh_pattern -i \.gif$ 60 50% 120 ignore-reload
refresh_pattern -i \.png$ 60 50% 120 ignore-reload
refresh_pattern -i \.jpg$ 60 50% 120 ignore-reload
refresh_pattern -i \.bmp$ 60 50% 120 ignore-reload
refresh_pattern -i \.jsp$ 1440 90% 129600 ignore-reload
refresh_pattern -i \.htm$ 1440 90% 129600 ignore-reload
refresh_pattern -i \.html$ 1440 90% 129600 ignore-reload

但是SQUID就是不能缓存jsp页面,用户访问jsp页面squid每次都从web server读取。换了N种写法也都不好使。
我的服务器有index.jsp和xxx.jsp?dir=abc两种类型的jsp页面

[ 本帖最后由 xxmxbtx 于 2007-3-16 00:41 编辑 ]
作者: suek    时间: 2007-03-16 17:59
#  TAG: cache
#       A list of ACL elements which, if matched, cause the request to
#       not be satisfied from the cache and the reply to not be cached.
#       In other words, use this to force certain objects to never be cached.
#  
#       You must use the word 'DENY' to indicate the ACL names which should
#       NOT be cached.
#  
#       Default is to allow all to be cached
#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
看着两行




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2