2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 05:31:44 +08:00

feat: 默认404缓存改为10s

This commit is contained in:
2026-01-29 19:38:14 +08:00
parent e7fa6b6fb0
commit bf8ca47c62
2 changed files with 2 additions and 2 deletions

View File

@@ -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")
}
// 不缓存条件

View File

@@ -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,