缓存条件增加If-None-Match和If-Modified-Since是否回源选项

This commit is contained in:
GoEdgeLab
2022-08-07 16:37:03 +08:00
parent eb60463af3
commit e76e2cd93b

View File

@@ -26,6 +26,8 @@ type HTTPCacheRef struct {
EnableRequestCachePragma bool `yaml:"enableRequestCachePragma" json:"enableRequestCachePragma"` // 是否支持客户端的Pragma: no-cache EnableRequestCachePragma bool `yaml:"enableRequestCachePragma" json:"enableRequestCachePragma"` // 是否支持客户端的Pragma: no-cache
AllowChunkedEncoding bool `yaml:"allowChunkedEncoding" json:"allowChunkedEncoding"` // 是否允许分片内容 AllowChunkedEncoding bool `yaml:"allowChunkedEncoding" json:"allowChunkedEncoding"` // 是否允许分片内容
AllowPartialContent bool `yaml:"allowPartialContent" json:"allowPartialContent"` // 支持分段内容缓存 AllowPartialContent bool `yaml:"allowPartialContent" json:"allowPartialContent"` // 支持分段内容缓存
EnableIfNoneMatch bool `yaml:"enableIfNoneMatch" json:"enableIfNoneMatch"`
EnableIfModifiedSince bool `yaml:"enableIfModifiedSince" json:"enableIfModifiedSince"`
Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 请求条件 Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 请求条件