squid proxy wrote:
> hi
>
> are these for squid 2.6.STABLE5 line corret?
>
> acl mydomain dstdomain .domain.net
> always_direct allow mydomain
> acl ASP urlpath_regex .asp
>   
This will deny caching for anything with the string "asp" preceded by a 
character.  "wasp", "clasp",  "3asp" and  "#asp" are all examples of 
strings that will match.  Regular expressions have a number of special 
characters (such as ".", "$" and "^"), which don't explicitly match the 
ASCII characters they represent, unless escaped (usually with another 
special character, "\").
> acl ASP urlpath_regex \.asp
>   
This is probably what you were going for with the first line, but with 
your current set up, it is redundant.
> acl ASP urlpath_regex asp$
>   
This is likely redundant.  It will match "asp" at the end of the URL 
path.  Unless that is the full extent of the url_path (e.g. 
http://www.example.com/asp), the first regular expression would match.
> acl ASP urlpath_regex \.asp\?.+
>   
This is, again, redundant.  Any string this would match would also be 
matched by the first and second regular expressions.
> no_cache deny mydomain ASP
>   
If you use the mydomain acl defined above, and the ASP acl defined by 
Luis Daniel Lucio Quiroz 
(http://www.squid-cache.org/mail-archive/squid-users/200902/0351.html)  
you would be set to not cache ASP pages from your domain on your Squid 
server.  Again, this will not prevent anyone else's server (or browser) 
from caching the pages.
> kind regards
> Piotr
Chris
Received on Fri Feb 20 2009 - 00:56:59 MST
This archive was generated by hypermail 2.2.0 : Fri Feb 20 2009 - 12:00:01 MST