Match taskboard to Nexus dark board

This commit is contained in:
Iris
2026-06-26 15:37:16 +00:00
parent 2d906b9e1e
commit 1de4169303
4 changed files with 275 additions and 180 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ async function serveStatic(req, res) {
const file = await readFile(filePath);
const ext = path.extname(filePath);
const type = ext === ".html" ? "text/html; charset=utf-8" : ext === ".css" ? "text/css; charset=utf-8" : ext === ".js" ? "text/javascript; charset=utf-8" : "application/octet-stream";
send(res, 200, file, { "content-type": type, "cache-control": ext === ".html" ? "no-store" : "public, max-age=3600" });
send(res, 200, file, { "content-type": type, "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" });
} catch {
const file = await readFile(path.join(publicDir, "index.html"));
send(res, 200, file, { "content-type": "text/html; charset=utf-8" });