From 27791c06ee27a5266d7bf76843ae2612d8930b26 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 5 Feb 2016 15:53:33 +0000 Subject: [PATCH] Cache-bust on /version request --- src/vector/updater.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/updater.js b/src/vector/updater.js index 0daba728..e8d6830d 100644 --- a/src/vector/updater.js +++ b/src/vector/updater.js @@ -43,7 +43,8 @@ module.exports = { } } }); - req.open("GET", "version"); + var cacheBuster = "?ts=" + new Date().getTime(); + req.open("GET", "version" + cacheBuster); req.send(); // can't suppress 404s from being logged. setTimeout(module.exports.run, POKE_RATE_MS);