Head requests on directory path end up in 404
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">
+ <meta name="robots" content="noindex">
+ <title>Homer</title>
</head>
<body>
<div id="app"></div>
// extra check to make sure we're not offline
let that = this;
- const aliveCheckUrl = window.location.href + "?t=" + new Date().valueOf();
+ const aliveCheckUrl = `${window.location.origin}${window.location.pathname}/index.html?t=${new Date().valueOf()}`;
return fetch(aliveCheckUrl, {
method: "HEAD",
cache: "no-store",