added cache buster in for all result url

This commit is contained in:
didier amyot committed 2016-06-02 08:48:55 -04:00
1 parent 137912eaa4
commit b3e48ebdfa
2 files changed
+6 -2

No files matched your search

+5
View File
@@ -56,5 +56,10 @@ define(['m'], function(m) {
); );
}; };
util.resultatsURL = function(){
var cacheBuster = 1;
return "api/resultats.json?_=" + cacheBuster;
};
return util; return util;
}); });
+1 -2
View File
@@ -26,8 +26,7 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
nextGameDaySchedule.controller = function(){ nextGameDaySchedule.controller = function(){
var games = m.prop([]); var games = m.prop([]);
var cacheBuster = 1; return m.request({method: "GET", url: util.resultatsURL()})
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){