Do not cache version file

This commit is contained in:
Eduard Kuzmenko 2022-01-25 22:18:37 +04:00
parent b0225329c9
commit 737f173f52

View File

@ -319,7 +319,7 @@ export class AppSidebarLeft extends SidebarSlider {
const CHECK_UPDATE_INTERVAL = 1800e3; const CHECK_UPDATE_INTERVAL = 1800e3;
const checkUpdateInterval = setInterval(() => { const checkUpdateInterval = setInterval(() => {
fetch('version') fetch('version', {cache: 'no-cache'})
.then(res => (res.status === 200 && res.ok && res.text()) || Promise.reject()) .then(res => (res.status === 200 && res.ok && res.text()) || Promise.reject())
.then(text => { .then(text => {
if(text !== App.versionFull) { if(text !== App.versionFull) {