diff --git a/apps/red-ui/src/main.ts b/apps/red-ui/src/main.ts index c0be9a104..5bb079b55 100644 --- a/apps/red-ui/src/main.ts +++ b/apps/red-ui/src/main.ts @@ -34,8 +34,9 @@ async function bootstrap(appConfig: AppConfig, version: { FRONTEND_APP_VERSION: } } -const versionPromise = fetch('/ui/assets/version/version.json').then(resp => resp.json()); -const configPromise = fetch('/ui/assets/config/config.json').then(resp => resp.json()); +const randomNr = Math.random().toFixed(2); +const versionPromise = fetch(`/ui/assets/version/version.json?skipCache=${randomNr}`).then(resp => resp.json()); +const configPromise = fetch(`/ui/assets/config/config.json?skipCache=${randomNr}`).then(resp => resp.json()); Promise.all([configPromise, versionPromise]) .then(([appConfig, version]) => bootstrap(appConfig, version))