diff --git a/web/js/index.js b/web/js/index.js index 5c4d175..147096b 100644 --- a/web/js/index.js +++ b/web/js/index.js @@ -140,7 +140,7 @@ async function tryCreateConversationId(trycount = 0) { const conversationRes = await fetch('/turing/conversation/create', { credentials: 'include', }).then(async (res) => { - if (res.status === 200 && +res.headers.get('content-length') > 0) { + if (res.status === 200 && res.body && !res.body.locked) { return await res.json(); } else { return 'error'; diff --git a/web/sw.js b/web/sw.js index d640657..26680ff 100644 --- a/web/sw.js +++ b/web/sw.js @@ -56,7 +56,7 @@ workbox.precaching.precacheAndRoute([ }, { url: '/web/js/index.js', - revision: '2023.05.06', + revision: '2023.05.06.11', }, // html {