免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2140 | 回复: 1
打印 上一主题 下一主题

[proxy] squid 反向代理无法缓存WEB服务器页面的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-16 00:23 |只看该作者 |倒序浏览
我的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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 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
看着两行
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP