Re: [squid-users] no_cache issue

From: Diamond King <[email protected]>
Date: Thu, 25 Mar 2004 21:43:15 -0800 (PST)

Here is my new ACL list :-

cl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl magic_words2 urlpath_regex -i \.exe$ \.mp3$
no_cache deny magic_words2

But somehow, when i check the access.log files using
the command stated in squid's
FAQ,http://www.squid-cache.org/Doc/FAQ/FAQ-7.html#ss7.2,
the .exe files and .mp3 are still cached.. Any idea??

--- Henrik Nordstrom <hno@squid-cache.org> wrote:
> On Wed, 24 Mar 2004, Diamond King wrote:
>
> > *snip*
> > acl QUERY urlpath_regex cgi-bin \?
> > acl magic_words2 url_regex -i .exe .mp3
> > no_cache deny QUERY magic_words2
>
> What you want is
>
> acl QUERY urlpath_regex cgi-bin \?
> no_cache deny QUERY
> acl magic_words2 url_regex -i \.exe$ \.mp3$
> no_cache deny magic_words2
>
>
> What your configuration said was that no_cache
> applies to requests having
> (cgi-bin OR ?) AND ( [anychar]exe OR [anychar]mp3)
> anywhere in the URL.
>
> http://www.example.com/cgi-bin/test.exe
> [match on cgi-bin and .exe]
>
> http://www.example.com/files/something.mp3
> [no match as there is no cgi-bin or ?]
>
>
http://www.example.com/cgi-bin/test.cgi?field=something
> [no match as there is no exe or mp3]
>
> http://www.example.com/cgi-bin/executor.cgi [match
> on cgi-bin AND
> /exe]
>
>
> Regards
> Henrik
>

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
Received on Mon Mar 29 2004 - 05:43:35 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:03 MST