Procházet zdrojové kódy

Cache bust json files

Rashid Khan před 12 roky
rodič
revize
de22a1ad34
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/app/services/dashboard.js

+ 1 - 1
src/app/services/dashboard.js

@@ -244,7 +244,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
 
     this.file_load = function(file) {
       return $http({
-        url: "app/dashboards/"+file,
+        url: "app/dashboards/"+file+'?' + new Date().getTime(),
         method: "GET",
         transformResponse: function(response) {
           return renderTemplate(response,$routeParams);