Not without distinguishing the content otherwise than the requestor I
think.
Attached you will find the small patch required for free. This change
will be in the upcoming Squid-2.5 release.
Regards
Henrik Nordström
Squid Hacker
Hans Juergen von Lengerke wrote:
>
> Hello Henrik,
>
> can you think of another way to accomplish what I want?
>
> Regards,
> Hans
>
> Henrik Nordstrom <hno@squid-cache.org> on Nov 10, 2001:
> >
> > no_cache only stops content from being cached, not cache hits. This is
> > how no_cache is designed. If you want it to function in another manner
> > then code changes is required.
> >
> >
> > Hans Juergen von Lengerke wrote:
> > >
> > > I am trying to set up acl's for an accelerator squid that would force
> > > squid to refresh objects when developers access the accelerated website.
> > > I got it working when _only_ developers access the website but as soon
> > > as someone else accesses an object, developers will get a cached
> > > response of the object rather than a fresh one. Here is my access
> > > control configuration:
> > >
> > > ## Access controls
> > > ##
> > > acl manager proto cache_object
> > > acl localhost src 127.0.0.1/255.255.255.255
> > > acl example src 194.120.114.6/255.255.255.255
> > > acl developer src 194.120.114.3/255.255.255.255
> > > acl all src 0.0.0.0/0.0.0.0
> > > acl SSL_ports port 443 563
> > > acl Safe_ports port 80 21 443 563 70 210 1025-65535
> > > acl Safe_ports port 280 # http-mgmt
> > > acl Safe_ports port 488 # gss-http
> > > acl Safe_ports port 591 # filemaker
> > > acl Safe_ports port 777 # multiling http
> > > acl CONNECT method CONNECT
> > > no_cache deny developer
> > > http_access allow all
> > > miss_access allow all
Index: src/client_side.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/client_side.c,v
retrieving revision 1.556
diff -u -w -r1.556 client_side.c
--- src/client_side.c 2001/10/26 23:11:56 1.556
+++ src/client_side.c 2001/11/13 06:37:24
@@ -2187,7 +2187,10 @@
{
request_t *r = http->request;
StoreEntry *e;
+ if (r->flags.cachable)
e = http->entry = storeGetPublicByRequest(r);
+ else
+ e = http->entry = NULL;
/* Release negatively cached IP-cache entries on reload */
if (r->flags.nocache)
ipcacheInvalidate(r->host);
Index: src/cf.data.pre
===================================================================
RCS file: /server/cvs-server/squid/squid/src/cf.data.pre,v
retrieving revision 1.238
diff -u -w -r1.238 cf.data.pre
--- src/cf.data.pre 2001/10/22 14:40:23 1.238
+++ src/cf.data.pre 2001/11/13 06:37:28
@@ -508,9 +508,9 @@
DEFAULT: none
LOC: Config.accessList.noCache
DOC_START
- A list of ACL elements which, if matched, cause the reply to
- immediately removed from the cache. In other words, use this
- to force certain objects to never be cached.
+ 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.
Received on Mon Nov 12 2001 - 23:47:55 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:03 MST