Chinaunix

标题: 有谁知道如何配置squid和apache 之间缓存到客户端缓存的细节吗, [打印本页]

作者: chalizhao    时间: 2008-05-08 16:04
标题: 有谁知道如何配置squid和apache 之间缓存到客户端缓存的细节吗,
有谁知道如何配置squid和apache 之间缓存到客户端缓存的细节吗,

我配置了,

expiresactive on                                    
# HTML文档的有效期是最后修改时刻                     
expiresByType text/ "access plus 1 seconds"           
expiresByType text/html "access plus 1 seconds"      
expiresByType text/htm "access plus 1 weeks"         
expiresbytype image/gif "access plus 1 month"         
expiresbytype image/jpg "access plus 1 month"         
expiresbytype image/jpeg "access plus 1 month"        
expiresbytype image/png "access plus 1 month"         
expiresbytype text/css "access plus 15 days"
expiresbytype application/x-shockwave-flash "access plus 15 days"      
</Directory>

有时候可以显示,但是有时后实时更新的html网页在首页显示不出来,

要等很长时间才显示
搞的我只能关了
#expiresactive on


如果我不想缓存html和htm那么是不是只要注释掉

#expiresByType text/html "access plus 1 seconds"      
#expiresByType text/htm "access plus 1 weeks"     
这两个就可以了,还是需要添加一句什么


[ 本帖最后由 chalizhao 于 2008-5-8 16:20 编辑 ]
作者: chalizhao    时间: 2008-05-08 16:29





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