免费注册 查看新帖 |

Chinaunix

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

[proxy] squid如何设置不做缓存,只做使用规则呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-17 14:01 |只看该作者 |倒序浏览
如题,我只想使用SQUID的强大规则,不需要做缓存,怎么设置SQUID???

论坛徽章:
0
2 [报告]
发表于 2007-10-17 14:16 |只看该作者
加上 no_cache 就可以
你还可以,指边个网站做cache 边个不做cache

论坛徽章:
0
3 [报告]
发表于 2007-10-17 21:16 |只看该作者
我得回去看一下规则咋写

论坛徽章:
0
4 [报告]
发表于 2007-10-18 22:50 |只看该作者
no_cache应该怎么写啊,看了半天我也没整明白,还请赐教!

论坛徽章:
0
5 [报告]
发表于 2007-10-19 14:51 |只看该作者
always_direct

refresh_pattern

论坛徽章:
0
6 [报告]
发表于 2007-10-21 22:26 |只看该作者
我加了一句:
acl HTTP proto HTTP
always_direct  allow HTTP
不知道对不?那如何知道现在的SQUID不缓存了呢?
谢谢

论坛徽章:
0
7 [报告]
发表于 2007-10-23 13:06 |只看该作者

回复 #6 5639863 的帖子

对,
这是把http的请求协议,直接转发到原服务器,
acl HTTP proto HTTP
always_direct  allow HTTP

论坛徽章:
0
8 [报告]
发表于 2007-10-27 15:26 |只看该作者
我今天Squid网站上看到这条:
Can I make Squid proxy only, without caching anything?
Sure, there are few things you can do.

You can use the ncache access list to make Squid never cache any response:


acl all src 0.0.0.0/0
cache deny all
With Squid-2.4 and later you can also use the "null" storage module to avoid having a cache directory:


cache_dir null /tmp
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP