From f7a532137a3d98e2c0d6fde376387325455f5444 Mon Sep 17 00:00:00 2001
From: log
Date: Tue, 23 Jun 2026 21:10:10 +0800
Subject: [PATCH] fix: prevent browser caching of config and models APIs
---
video-claw/video-claw/frontend/app/settings/page.tsx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/video-claw/video-claw/frontend/app/settings/page.tsx b/video-claw/video-claw/frontend/app/settings/page.tsx
index 084f5a2..6a55f9e 100644
--- a/video-claw/video-claw/frontend/app/settings/page.tsx
+++ b/video-claw/video-claw/frontend/app/settings/page.tsx
@@ -202,7 +202,7 @@
setLoading(true);
setError('');
try {
- const resp = await fetch('/api/config');
+ const resp = await fetch('/api/config', { cache: 'no-store' });
if (!resp.ok) throw new Error('读取配置失败');
const data = await resp.json();
setConfig(data.config || {});
--
Gitblit v1.8.0