diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index f159bfc4..51e1b6af 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -488,6 +488,8 @@ def create_app(args): ) response.headers["Pragma"] = "no-cache" response.headers["Expires"] = "0" + elif path.endswith(".js"): + response.headers["Content-Type"] = "application/javascript" return response # Webui mount webui/index.html