Cache-bust on /version request

This commit is contained in:
Kegan Dougal 2016-02-05 15:53:33 +00:00
parent 01bfb67b5b
commit 27791c06ee

View File

@ -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. req.send(); // can't suppress 404s from being logged.
setTimeout(module.exports.run, POKE_RATE_MS); setTimeout(module.exports.run, POKE_RATE_MS);