The obvious answer is to not allow SQUID to cache the requests.
Cut directly from the SQUID FAQ:
7.8 How can I make Squid NOT cache some servers or URLs?
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:
Code:
acl Local dst 10.0.1.0/24
no_cache deny Local
This example makes all URL's with '.html' uncachable:
Code:
acl HTML url_regex .html$
no_cache deny HTML
This example makes a specific URL uncachable:
Code:
acl XYZZY url_regex ^[URL unfurl="true"]http://www.i.suck.com/foo.html$[/URL]
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.
located at:
pansophic