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:
@@ -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")
|
||||
}
|
||||
|
||||
// 不缓存条件
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user