From 137912eaa4c768845f3b4690e1c861bb578a8526 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Thu, 2 Jun 2016 08:45:22 -0400 Subject: [PATCH] added cache buster --- script/views/mainPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/views/mainPage.js b/script/views/mainPage.js index 4c04558..3ff618b 100644 --- a/script/views/mainPage.js +++ b/script/views/mainPage.js @@ -26,7 +26,8 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar nextGameDaySchedule.controller = function(){ 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(resultParser.getNightGames) .then(function(nightGames){