mirror of https://github.com/vector-im/riot-web
Merge pull request #10349 from vector-im/bwindels/cachebust-config
Cachebust config file requestspull/10363/head
commit
8a022a4be0
|
@ -37,7 +37,7 @@ export async function getVectorConfig(relativeLocation) {
|
||||||
function getConfig(configJsonFilename) {
|
function getConfig(configJsonFilename) {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
request(
|
request(
|
||||||
{ method: "GET", url: configJsonFilename },
|
{ method: "GET", url: configJsonFilename, qs: { cachebuster: Date.now() } },
|
||||||
(err, response, body) => {
|
(err, response, body) => {
|
||||||
try {
|
try {
|
||||||
if (err || response.status < 200 || response.status >= 300) {
|
if (err || response.status < 200 || response.status >= 300) {
|
||||||
|
|
Loading…
Reference in New Issue