Chinaunix首页 | 论坛 | 博客
  • 博客访问: 631589
  • 博文数量: 95
  • 博客积分: 2091
  • 博客等级: 大尉
  • 技术积分: 982
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-05 19:34
文章分类

全部博文(95)

文章存档

2017年(1)

2016年(20)

2015年(10)

2014年(6)

2013年(4)

2012年(1)

2011年(9)

2010年(6)

2009年(20)

2008年(17)

2007年(1)

我的朋友

分类: LINUX

2008-11-13 12:10:37

  有时候我们需要不缓存某些页面,在squid中我们可以这样来做:
 
在squid中加入
 
acl html url_regex -i ^*\.htm$
no_cache deny html
意思不缓存以 http开头 htm结尾的页面
-i 作用是区分大小写
 
acl directory urlpath_regex -i ^/nocache
no_cache deny directory
 
意思不缓存目录nocache下的所有页面
 
 
阅读(1658) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~