added cache buster

This commit is contained in:
didier amyot committed 2016-06-02 08:45:22 -04:00
1 parent a0ae5e89b7
commit 137912eaa4
1 file changed
+2 -1
+2 -1
View File
@@ -26,7 +26,8 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
nextGameDaySchedule.controller = function(){ nextGameDaySchedule.controller = function(){
var games = m.prop([]); var games = m.prop([]);
return m.request({method: "GET", url: "api/resultats.json"}) var cacheBuster = 1;
return m.request({method: "GET", url: "api/resultats.json?_=" + cacheBuster})
.then(games) .then(games)
.then(resultParser.getNightGames) .then(resultParser.getNightGames)
.then(function(nightGames){ .then(function(nightGames){