From 7c4c956be0c3c4c2f76f181e356779003bc8f998 Mon Sep 17 00:00:00 2001
From: log
Date: Thu, 25 Jun 2026 22:21:07 +0800
Subject: [PATCH] fix: replace favicon.ico with icon.png to resolve build error

---
 video-claw/video-claw/backend/api/routers/configuration.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/video-claw/video-claw/backend/api/routers/configuration.py b/video-claw/video-claw/backend/api/routers/configuration.py
index 9fdd11f..0f96c1b 100644
--- a/video-claw/video-claw/backend/api/routers/configuration.py
+++ b/video-claw/video-claw/backend/api/routers/configuration.py
@@ -1,9 +1,9 @@
 from typing import Any, Dict
 
-from fastapi import APIRouter
+from fastapi import APIRouter, Response
 from pydantic import BaseModel, Field
 
-from api.logging_config import apply_access_log_setting
+from api.logging_config import apply_access_log_setting, apply_log_level_setting
 from config import Config, CONFIG_PATH
 
 router = APIRouter(tags=["Configuration"])
@@ -14,7 +14,8 @@
 
 
 @router.get("/api/config")
-async def get_config():
+async def get_config(response: Response):
+    response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
     return {
         "config": Config.as_dict(),
         "path": str(CONFIG_PATH),
@@ -24,6 +25,7 @@
 @router.put("/api/config")
 async def update_config(req: ConfigUpdateRequest):
     config = Config.update_config(req.values)
+    apply_log_level_setting()
     apply_access_log_setting()
     return {
         "config": config,

--
Gitblit v1.8.0