Browse Source

Do not cache version file

master
Eduard Kuzmenko 3 years ago
parent
commit
737f173f52
  1. 2
      src/components/sidebarLeft/index.ts

2
src/components/sidebarLeft/index.ts

@ -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) {

Loading…
Cancel
Save