forked from mystiq/hydrogen-web
No need to rewrite to index.html
This commit is contained in:
parent
b6e55ef59c
commit
826835e518
1 changed files with 0 additions and 5 deletions
|
@ -124,11 +124,6 @@ async function handleRequest(request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleConfigRequest(request) {
|
async function handleConfigRequest(request) {
|
||||||
const url = new URL(request.url);
|
|
||||||
// rewrite / to /index.html so it hits the cache
|
|
||||||
if (url.origin === baseURL.origin && url.pathname === baseURL.pathname) {
|
|
||||||
request = new Request(new URL("index.html", baseURL.href));
|
|
||||||
}
|
|
||||||
let response = await readCache(request);
|
let response = await readCache(request);
|
||||||
if (response) {
|
if (response) {
|
||||||
fetchAndUpdateConfig(request);
|
fetchAndUpdateConfig(request);
|
||||||
|
|
Loading…
Reference in a new issue