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. Filtering "evil" popup ads with Squid
  2. New “Add to Google” button
  3. Google backlink update
  4. Google PageRank update
  5. Google Analytics

3 Responses to “Caching Google Earth with Squid”

  1. [...] Caching Google Earth with Squid I saw this one in the Squid mailing list, in a post by Rodrigo Freire. [...]

  2. Coenraad Loubser says:

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

  3. poldy says:

    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


Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
This work by Pedro Timóteo is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal.