Caching Google Earth with Squid

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:

  1. The order of titles
  2. Software I Like #5: Gajim
  3. Windows Live Local preview
  4. …and I shall DESTROY THE WORLD!!!
  5. Linux, fundamentalism and the many distros (part 2)

2 Responses to “Caching Google Earth with Squid”


  1. 1 Coenraad Loubser

    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! :(

  2. 2 poldy

    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

  1. 1 Google Vs » Blog Archive » Earth Cache Hack

Leave a Reply




Bad Behavior has blocked 1038 access attempts in the last 7 days.

Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal