From 54c93f6d498f8d54a65706e41eb8ee700cc38e91 Mon Sep 17 00:00:00 2001 From: Rin Date: Mon, 29 Dec 2025 04:51:52 +0800 Subject: [PATCH] fix(minecraft): dashboard not working --- services/minecraft/src/debug-server.ts | 5 ++++- services/minecraft/src/web/dashboard.html | 27 ++++++++++++----------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/services/minecraft/src/debug-server.ts b/services/minecraft/src/debug-server.ts index 0c0fb2946..fc867aae8 100644 --- a/services/minecraft/src/debug-server.ts +++ b/services/minecraft/src/debug-server.ts @@ -70,7 +70,10 @@ export class DebugService { const htmlPath = path.join(__dirname, 'web', 'dashboard.html') try { const html = fs.readFileSync(htmlPath, 'utf-8') - res.writeHead(200, { 'Content-Type': 'text/html' }) + res.writeHead(200, { + 'Content-Type': 'text/html', + 'Cache-Control': 'no-cache', + }) res.end(html) } catch { diff --git a/services/minecraft/src/web/dashboard.html b/services/minecraft/src/web/dashboard.html index 63fe8ab2a..41a62d183 100644 --- a/services/minecraft/src/web/dashboard.html +++ b/services/minecraft/src/web/dashboard.html @@ -290,7 +290,8 @@