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

This commit is contained in:
GoEdgeLab
2021-05-12 16:10:17 +08:00
parent d38c0286d7
commit f590f952b2

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"` // 缓存配置
}