On Mon, 26 Jun 2000, John Castillo wrote:
> hello all,
>
> i'm very new to using squid so please excuse what could be a relatively simple question
>
> I'm currently running Squid 2 on a RH6.2 system
>
> 1 ) i've read the Faq 12.20 How does Squid decide to refresh a cached object?
> from what i've read Squid 2 uses just simple math to determine how old a object is. the FAQ explains that the the algorithms calcuated variables are compared to the refresh_pattern rule and its parameters to determine whether an object is fresh or not. can someone provide an example of the refresh pattern rule along with a parameter. should i specify the rules in squid.conf?
>
> 2) i have a situation where i do not want to cache a certain type of file with the filename of 1,blhablah,blahblah.html
>
> Under FAQ Section 7.8, the acl should look like
>
> acl MYRULE url_regex 1,
> no_cache deny MYRULE
>
> is this correct? why are ^ and $ used in the examples?
That will work.
It also matches a filename like 'blah,1,foo'
If you want to make sure the '1' is the first letter of
the filename, write it like this:
acl MYRULE url_regex /1,
The ^ and $ characters "match" the beginning and end of a
string only. See http://jmason.org/software/sitescooper/tao_regexps.html
for more info.
Duane W.
Received on Mon Jun 26 2000 - 20:16:26 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:11 MST