Match taskboard to Nexus dark board
This commit is contained in:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user