don't cache non-ok server responces
This commit is contained in:
parent
0a8eab2d03
commit
fa4e3b18a7
1 changed files with 1 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue