added cache buster in for all result url
This commit is contained in:
1 parent
137912eaa4
commit
b3e48ebdfa
2 files changed
+6
-2
No files matched your search
@@ -56,5 +56,10 @@ define(['m'], function(m) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
util.resultatsURL = function(){
|
||||||
|
var cacheBuster = 1;
|
||||||
|
return "api/resultats.json?_=" + cacheBuster;
|
||||||
|
};
|
||||||
|
|
||||||
return util;
|
return util;
|
||||||
});
|
});
|
||||||
@@ -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){
|
||||||
|
|||||||
Reference in new issue
Block a user