LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid Cache Site Exceptions?? (https://www.linuxquestions.org/questions/linux-software-2/squid-cache-site-exceptions-265316/)

win32sux 12-11-2004 03:19 PM

Squid Cache Site Exceptions??
 
just a quick question...

i'm using squid as a transparent proxy on a linux gateway...

what is the procedure for setting certain sites so they don't get cached by squid??

Roach 12-11-2004 03:46 PM

Try this in your squid.conf

acl QUERY urlpath_regex cgi-bin \?
acl PHP url_regex .php?
no_cache deny QUERY
no_cache deny PHP

It tells squid not to cache PHP and cgi

You can add other sites by either their ip address or name

R :-)

win32sux 12-11-2004 04:33 PM

cool. thanks roach.

=)


one question: what does the "\?" mean??

win32sux 12-12-2004 05:08 PM

BUMP

what would it look like if i wanted to disable the cache for cnn.com, reuters.com, and foxnews.com, for example???


cidrolin 12-13-2004 06:51 AM

acl newscast destdomain .cnn.com .reuters.com .foxnews.com
no_cache deny newscast

I think...

win32sux 12-13-2004 08:28 AM

Quote:

Originally posted by cidrolin
acl newscast destdomain .cnn.com .reuters.com .foxnews.com
no_cache deny newscast

I think...

makes sense... i'll try it... thank you...


All times are GMT -5. The time now is 07:39 AM.