瀏覽代碼

Cache bust json files

Rashid Khan 12 年之前
父節點
當前提交
de22a1ad34
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);