- 論壇徽章:
- 0
|
有誰知道如何配置squid和apache 之間緩存到客戶端緩存的細(xì)節(jié)嗎,
我配置了,
expiresactive on
# HTML文檔的有效期是最后修改時(shí)刻
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>
有時(shí)候可以顯示,但是有時(shí)后實(shí)時(shí)更新的html網(wǎng)頁在首頁顯示不出來,
要等很長時(shí)間才顯示
搞的我只能關(guān)了
#expiresactive on
如果我不想緩存html和htm那么是不是只要注釋掉
#expiresByType text/html "access plus 1 seconds"
#expiresByType text/htm "access plus 1 weeks"
這兩個(gè)就可以了,還是需要添加一句什么
[ 本帖最后由 chalizhao 于 2008-5-8 16:20 編輯 ] |
|