KML updated hourly...problem with cache when loading it
I have searched all over the Internet for a solution to my problem. I
have a kml that is constantly updated...it's a network monitoring, so
we constantly update the kml.
Let's say i open the kml 100 times a day. The function who loads the
kml, instead of showing the fresh one, loads from the cache (I suppose
that theory) an old version.
Assume the following code:
//////////////////////////////////////////////////////////////////////////////////
// Load kml file in ram
function load_kml(kml){
kml = kml + "?"+(new Date()).getDate();
alert(kml);
geoXml = new GGeoXml(kml);
}
load_kml("http://jftremblay.net/google/google.kml");
////////////////////////////////////////////////////////////////////////////////////
Barry Hunter said in another post that if I add a querystring to my
request (in this case a getdate function), a fresh kml will be loaded
but, in this case, even when I push Ctrl+F5 to make a fresh page load,
it doen`t work.
Any idea???
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home