mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
No need to rewrite to index.html
This commit is contained in:
parent
b6e55ef59c
commit
826835e518
@ -124,11 +124,6 @@ async function handleRequest(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);
|
||||
if (response) {
|
||||
fetchAndUpdateConfig(request);
|
||||
|
Loading…
Reference in New Issue
Block a user