Browse Source

Merge pull request #224 from Temechon/patch-1

XMLHttpRequest is looking first in the cache
deltakosh 11 years ago
parent
commit
7d453e1d54
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Babylon/Tools/babylon.database.js

+ 2 - 1
Babylon/Tools/babylon.database.js

@@ -468,7 +468,8 @@ var BABYLON = BABYLON || {};
             var xhr = new XMLHttpRequest(), sceneText;
             var that = this;
 
-            xhr.open("GET", url, true);
+            var urlTimeStamped = url + (url.match(/\?/) == null ? "?" : "&") + (new Date()).getTime();
+            xhr.open("GET", urlTimeStamped, true);
 
             xhr.onprogress = progressCallback;