I saw this one in the Squid mailing list, in a post by Rodrigo Freire.
Google Earth doesn’t “like” to be cached. However, doing so can save a lot of bandwidth, especially in a company where a lot of people use it - users can share the proxy server’s cache.
Here’s what you should add / change in your squid.conf file:
acl QUERY urlpath_regex cgi-bin \? intranet
acl forcecache url_regex -i kh.google keyhole.com
no_cache allow forcecache
no_cache deny QUERY
----
refresh_pattern -i kh.google 1440 20% 10080 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i keyhole.com 1440 20% 10080 override-expire override-lastmod reload-into-ims ignore-reload
Warning: it’s only 2 lines after the "----". Both begin with "refresh pattern" and end with "ignore-reload". Your browser may have split each of them in two, so…
Note that you will probably need to change some of it to adapt it to your configuration - especially the "acl QUERY" line.
Related posts:






















Doesnt work on Squid 2.5 STABLE5: Still logs TCP_MISS (I’ve adjusted for kh.\.google.com)
Can’t read the comments so I doubt anyone will see this!
hey there,
did the same. tuned my squid to use google earth in our company but failed with the above steps. stange thing is, if I use google earth pro (dled the trial version) it works smooth!!! anyone got a clue why?
catch ya
poldy