Re: Does query will make squid to search its cache file table or just direct pass to original server ?

From: Clifton Royston <cliftonr@dont-contact.us>
Date: Wed, 29 Dec 1999 10:10:02 -1000

On Wed, Dec 29, 1999 at 05:41:35PM +0800, ¤ý²Ð¦t wrote:
> Dear Sir:
> Dose query will direct pass to original server? Because In our
> squid.conf , we have this setting
>
> acl QUERY urlpath_regex cgi-bin \?
> no_cache deny QUERY
>
> According this, does squid need to check its cache file table then
> pass this request to original server?

I believe it actually will check its cache first, even though this
seems illogical.

> Or when squid receive this kind query request , it doesn't need check its
> cache file table ,just direct pass to original server.

It will pass it either to the original server, or to a parent server if
a parent is configured. (Which could be bad, because the parent server
might be configured to cache it even if you're not.)

Also, some web servers might not have cgi-bin in the path for cgis;
"cgi" is a more conservative match string.

An improved configuration, IMHO, might be:

acl QUERY urlpath_regex cgi \?
no_cache deny QUERY
always_direct allow QUERY

This is what I use currently.
  -- Clifton

-- 
 Clifton Royston  --  LavaNet Systems Architect --  cliftonr@lava.net
        "An absolute monarch would be absolutely wise and good.  
           But no man is strong enough to have no interest.  
             Therefore the best king would be Pure Chance.  
              It is Pure Chance that rules the Universe; 
          therefore, and only therefore, life is good." - AC
Received on Wed Dec 29 1999 - 15:06:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:07 MST