]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Alter caching policy for Dynamic Objects.
authoramosjeffries <>
Wed, 6 Feb 2008 13:54:40 +0000 (13:54 +0000)
committeramosjeffries <>
Wed, 6 Feb 2008 13:54:40 +0000 (13:54 +0000)
- Alters squid caching policy for dynamically generated objects
to allow caching when objects have Cache-Control headers.
- Default policy now follows RFC 2616 section 13.9 exactly as stated.

see http://www.mail-archive.com/squid-dev@squid-cache.org/msg06963.html

src/cf.data.pre

index 57321ca2528471034d8ca2290cb16150b33156bc..9346fc613713d879296527028b7806f504d9d9ef 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.488.2.1 2008/01/20 11:01:11 amosjeffries Exp $
+# $Id: cf.data.pre,v 1.488.2.2 2008/02/06 06:54:40 amosjeffries Exp $
 #
 # SQUID Web Proxy Cache                http://www.squid-cache.org/
 # ----------------------------------------------------------
@@ -2451,19 +2451,14 @@ TYPE: acl_access
 DEFAULT: none
 LOC: Config.accessList.noCache
 DOC_START
-       A list of ACL elements which, if matched, cause the request to
+       A list of ACL elements which, if matched and denied, 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.
+       You must use the words 'allow' or 'deny' to indicate whether items
+       matching the ACL should be allowed or denied into the cache.
 
        Default is to allow all to be cached
-NOCOMMENT_START
-#We recommend you to use the following two lines.
-acl QUERY urlpath_regex cgi-bin \?
-cache deny QUERY
-NOCOMMENT_END
 DOC_END
 
 NAME: refresh_pattern
@@ -2564,6 +2559,7 @@ Suggested default:
 NOCOMMENT_START
 refresh_pattern ^ftp:          1440    20%     10080
 refresh_pattern ^gopher:       1440    0%      1440
+refresh_pattern (cgi-bin|\?)   0       0%      0
 refresh_pattern .              0       20%     4320
 NOCOMMENT_END
 DOC_END