Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I make Squid NOT cache some servers or URLs?

cache servers Squid URLs
0
Posted

How can I make Squid NOT cache some servers or URLs?

0

In Squid-2, you use the no_cache option to specify uncachable requests. For example, this makes all responses from origin servers in the 10.0.1.0/24 network uncachable: acl Local dst 10.0.1.0/24 no_cache deny Local This example makes all URL’s with ‘.html’ uncachable: acl HTML url_regex .html$ no_cache deny HTML This example makes a specific URL uncachable: acl XYZZY url_regex ^http://www.i.suck.com/foo.html$ no_cache deny XYZZY This example caches nothing between the hours of 8AM to 11AM: acl Morning time 08:00-11:00 no_cache deny Morning In Squid-1.1, whether or not an object gets cached is controlled by the cache_stoplist, and cache_stoplist_pattern options. So, you may add: cache_stoplist my.domain.com Specifying uncachable objects by IP address is harder. The 1.1 patch page includes a patch called no-cache-local.patch which changes the behaviour of the local_ip and local_domain so that matching requests are NOT CACHED, in addition to being fetched directly.

0

— Basic free Squid support provided thanks to MARA Systems AB Your source of advanced reverse proxy solutions or customized Squid solutions. http://www.marasystems.

0

In Squid-2, you use the no_cache option to specify uncachable requests. For example, this makes all responses from origin servers in the 10.0.1.

0
10

” http://www.squid-cache.org/Doc/FAQ/FAQ-7.html#ss7.8 always_direct and never_direct are only used in cache heirarchies.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.