Ric wrote:
> 
> For a reverse proxy setup (squid-2.6), I have several stanzas like the 
> following...
> 
> acl static_content urlpath_regex -i \.(jpg|jpeg|gif|png)$
> cache allow static_content
> refresh_pattern -i \.(jpg|jpeg|gif|png)$ 0 20% 4320 ignore-auth
> 
> A few of these regex's can be pretty long.  For config readability, I 
> was wondering if refresh_pattern can be made to reuse the regex acl 
> defined in the first line.  For a pattern similar to the following....
> 
> acl static_images urlpath_regex -i \.(jpg|jpeg|gif|png)$
> cache allow static_images
> refresh_pattern static_images 0 20% 4320 ignore-auth
> 
> The docs seem to suggest that this won't work currently, so I guess my 
> question is really what do the developers think about enabling this 
> pattern?
You would get a better response from the developers by posting this to 
the squid-dev mailing list.
I think its an interesting idea. Bit risky with regex being the largest 
performance drain, but if you are willing to submit a patch I daresay 
we'll review it for you.
Amos
-- Please use Squid 2.6STABLE17+ or 3.0STABLE1+ There are serious security advisories out on all earlier releases.Received on Sun Mar 09 2008 - 03:42:24 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT