缓存条件支持反向匹配

This commit is contained in:
GoEdgeLab
2021-06-09 17:15:12 +08:00
parent 8ae0e5fa7e
commit 76bd0abb94
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