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