This commit is contained in:
backuppc
2025-07-08 11:16:43 +09:00
parent d537030eb3
commit 8efe357430
11 changed files with 380 additions and 97 deletions

View File

@@ -36,6 +36,18 @@ namespace VNCServerList.Web
};
app.UseFileServer(options);
// 캐시 방지 미들웨어 추가
app.Use(async (context, next) =>
{
if (context.Request.Path.Value.EndsWith(".js") || context.Request.Path.Value.EndsWith(".css"))
{
context.Response.Headers["Cache-Control"] = "no-cache, no-store, must-revalidate";
context.Response.Headers["Pragma"] = "no-cache";
context.Response.Headers["Expires"] = "0";
}
await next();
});
}
}
}