don't cache non-ok server responces
This commit is contained in:
@@ -30,6 +30,7 @@ async function checkCache(){
|
|||||||
}
|
}
|
||||||
console.log(lastcache);
|
console.log(lastcache);
|
||||||
fetch("/getupdates").then(async data=>{
|
fetch("/getupdates").then(async data=>{
|
||||||
|
if(!data.ok) return;
|
||||||
const text = await data.clone().text();
|
const text = await data.clone().text();
|
||||||
console.log(text, lastcache);
|
console.log(text, lastcache);
|
||||||
if(lastcache !== text){
|
if(lastcache !== text){
|
||||||
|
Reference in New Issue
Block a user