增加是否自动添加X-Cache选项

This commit is contained in:
刘祥超
2021-05-12 16:10:17 +08:00
parent c87ec51edc
commit 496c9b5e47

View File

@@ -6,6 +6,8 @@ type HTTPCacheConfig struct {
IsPrior bool `yaml:"isPrior" json:"isPrior"`
IsOn bool `yaml:"isOn" json:"isOn"`
AddStatusHeader bool `yaml:"addStatusHeader" json:"addStatusHeader"` // 是否增加命中状态Header
CacheRefs []*HTTPCacheRef `yaml:"cacheRefs" json:"cacheRefs"` // 缓存配置
}