Do not cache version file
This commit is contained in:
parent
b0225329c9
commit
737f173f52
@ -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…
Reference in New Issue
Block a user