Avoid flashplayer caching, for now
authorAndy Allan <gravitystorm@gmail.com>
Mon, 23 Nov 2009 17:12:07 +0000 (17:12 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Mon, 23 Nov 2009 17:12:07 +0000 (17:12 +0000)
net/systemeD/potlatch2/mapfeatures/MapFeatures.as
resources/potlatch2.html

index 9a699ac..e3a00a7 100644 (file)
@@ -29,7 +29,7 @@ package net.systemeD.potlatch2.mapfeatures {
         private var _categories:Array = null;
 
         protected function loadFeatures():void {
-            var request:URLRequest = new URLRequest("map_features.xml");
+            var request:URLRequest = new URLRequest("map_features.xml?"+Math.random());
             var loader:URLLoader = new URLLoader();
             loader.addEventListener(Event.COMPLETE, onFeatureLoad);
             loader.load(request);
index e31770a..8cb1ad7 100644 (file)
@@ -27,7 +27,7 @@
         fo.addVariable("oauth_consumer_key", "fiM1IoqnKJk4JCfcl63DA");
         fo.addVariable("oauth_consumer_secret", "7fYgJK9M4vB1CvBZ6jEsPGxYK9UD1hEnI6NqTxNGs");
         fo.addVariable("serverName", "api06 Test On Dev");
-       fo.addVariable("style","potlatch.css");
+       fo.addVariable("style","potlatch.css?d="+Math.round(Math.random()*1000));
        fo.write("map");