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. Limiting Internet Explorer to Windows Update
  2. The BSDs
  3. The order of titles
  4. Software I Like #5: Gajim
  5. Filtering "evil" popup ads with Squid

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

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

Leave a Reply




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