diff --git a/index.ts b/index.ts index 7a4ac31..85517c0 100644 --- a/index.ts +++ b/index.ts @@ -136,11 +136,10 @@ async function setupSnapshotServer( if (magic) { const hash = createHash("md5").update(magic).digest("hex"); const index = parseInt(hash.substring(0, 8), 16) % files.length; - // Cache until the next hour rolls over res.sendFile(files[index], { headers: { "Cache-Control": `public, max-age=${ - 3600 - new Date().getMinutes() * 60 + 3600 - new Date().getMinutes() * 60 - new Date().getSeconds() }`, }, root: currentDir,