缓存条件支持反向匹配

This commit is contained in:
刘祥超
2021-06-09 17:15:12 +08:00
parent 8889c87334
commit 6f294f58c5
3 changed files with 19 additions and 8 deletions

View File

@@ -26,6 +26,8 @@ type HTTPCacheRef struct {
CachePolicy *HTTPCachePolicy `yaml:"cachePolicy" json:"cachePolicy"`
IsReverse bool `yaml:"isReverse" json:"isReverse"` // 是否为反向条件,反向条件的不缓存
lifeSeconds int64
maxSize int64
uppercaseSkipCacheControlValues []string