Fixed cache problem for pages

This commit is contained in:
Magnus Åhall 2023-08-05 08:14:49 +02:00
parent e7b58fdd63
commit a9101f02c1

View File

@ -33,7 +33,7 @@ class App {
})
}//}}}
retrieveVersion() {//{{{
return fetch('/VERSION')
return fetch('/VERSION', {cache: "no-store"})
.then(res=>{
if(res.ok)
return res.text()
@ -50,7 +50,7 @@ class App {
if(page === null)
page = 'start'
return fetch(`/${page}.yaml`)
return fetch(`/${page}.yaml`, {cache: "no-store"})
.then(res=>{
if(res.ok)
return res.text()