0

Right now the .kml files that I use for a Google Maps implementation on my site are being cached for 7 days because the Cache-Control header within IIS7 is set to 7 days (as per these instructions).

I could use version control to update the .kml files when changes are made, but I would rather not because other people might want to refer to them.

Can I configure IIS7, or make a configuration change to the .kml file in order to remove the caching, or set it to a very short period?

Community
  • 1
  • 1
Techboy
  • 4,286
  • 5
  • 36
  • 45

1 Answers1

1

You can set/change the expire headers at a per directory basis in IIS.

The easiest way to accomplish what you want is to create a new directory where you serve the .kml files from. Remove the expire headers from that directory.

Eddy
  • 5,320
  • 24
  • 40