mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(sw) cache of 401
This commit is contained in:
parent
def7a08855
commit
d5266070e7
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,9 @@ async function onFetch(event) {
|
|||
if (!isDev && response)
|
||||
return response;
|
||||
|
||||
const [e, resp] = await tryToCatch(fetch, request.clone());
|
||||
const [e, resp] = await tryToCatch(fetch, request.clone(), {
|
||||
credentials: 'same-origin'
|
||||
});
|
||||
|
||||
if (e)
|
||||
return console.error(e, response, pathname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue