From bf8ca47c629f622997c599676cb3288800145ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 29 Jan 2026 19:38:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=BB=98=E8=AE=A4404=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=94=B9=E4=B8=BA10s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/webserver/nginx/proxy.go | 2 +- web/src/views/website/EditView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/webserver/nginx/proxy.go b/pkg/webserver/nginx/proxy.go index e8bacc2d..a97eb966 100644 --- a/pkg/webserver/nginx/proxy.go +++ b/pkg/webserver/nginx/proxy.go @@ -350,7 +350,7 @@ func generateProxyConfig(proxy types.Proxy) string { } else { // 默认缓存时长 sb.WriteString(" proxy_cache_valid 200 302 10m;\n") - sb.WriteString(" proxy_cache_valid 404 1m;\n") + sb.WriteString(" proxy_cache_valid 404 10s;\n") } // 不缓存条件 diff --git a/web/src/views/website/EditView.vue b/web/src/views/website/EditView.vue index 69a01e64..038d018d 100644 --- a/web/src/views/website/EditView.vue +++ b/web/src/views/website/EditView.vue @@ -342,7 +342,7 @@ const addProxy = () => { // ========== 缓存配置相关 ========== // 创建默认缓存配置 const createDefaultCacheConfig = () => ({ - valid: { '200 302': '10m', '404': '1m' }, + valid: { '200 302': '10m', '404': '10s' }, no_cache_conditions: [], use_stale: [], background_update: false,