cachebust config file requests

This commit is contained in:
Bruno Windels 2019-07-16 12:49:10 +02:00
parent 9de26ed062
commit 2cf1aabcba

View File

@ -37,7 +37,7 @@ export async function getVectorConfig(relativeLocation) {
function getConfig(configJsonFilename) {
return new Promise(function(resolve, reject) {
request(
{ method: "GET", url: configJsonFilename },
{ method: "GET", url: configJsonFilename, qs: { cachebuster: Date.now() } },
(err, response, body) => {
try {
if (err || response.status < 200 || response.status >= 300) {