How long does Google Maps cache kml files?

Viewed 10049

I have over 20 kml/kmz files that I let users add to a Google Maps (ver 2). I know that if I modify the kml file, Google has it cached and won't update it immediately unless you change the file's name.

How long will it be before Google Maps updates its cache?

If it updates its cache within a month, then for minor changes to my KML files I can avoid updating my file names.

2 Answers

You can create a kml file as follow, input the link to your source kml file between the <href> tags, and use this file as the kml of your map. By doing this, the file between the <href> tags will be refreshed every hour.

<kml xmlns="http://earth.google.com/kml/2.1">
  <NetworkLink>
    <Link>
      <href> [your_source_kml_link] </href>
      <refreshMode>onInterval</refreshMode>
      <refreshInterval> 3600 </refreshInterval>
    </Link>
  </NetworkLink>
</kml>
Related