fix trace npe. fix /boot redirect after install
This commit is contained in:
parent
99553f96cc
commit
1f6314512c
3 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ async function _fetch(e) {
|
|||
|
||||
if (url.pathname.endsWith("/")) {
|
||||
return e.respondWith(redirectOr404(appendURL(url, 'index.html').pathname));
|
||||
} else if (url.pathname.indexOf(".") < 0) {
|
||||
} else if (url.pathname.indexOf(".") < 0 || url.pathname.endsWith("/boot")) {
|
||||
return e.respondWith(redirectOr404(appendURL(url, '/index.html').pathname));
|
||||
} else {
|
||||
e.respondWith(fromCacheOrNetwork(request));
|
||||
|
|
|
|||
Loading…
Reference in a new issue