- 论坛徽章:
- 0
|
原帖由 ylfxx 于 2007-11-15 10:43 发表 ![]()
我想用squid 缓存 asp php 等动态网页。。谁教我怎么做啊。。。
一般静态网页已配置好,可以缓存·!·!:em11: :em11: :em11:
動態網頁若是被 cache 了, 那怎樣動態呢 ?
squid.conf 內這區段自己看看改改:
- # TAG: hierarchy_stoplist
- # A list of words which, if found in a URL, cause the object to
- # be handled directly by this cache. In other words, use this
- # to not query neighbor caches for certain objects. You may
- # list this option multiple times.
- #We recommend you to use at least the following line.
- hierarchy_stoplist cgi-bin ?
- # TAG: no_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.
- #
- #We recommend you to use the following two lines.
- acl QUERY urlpath_regex cgi-bin \?
- no_cache deny QUERY
复制代码
-- |
|