mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-15 05:50:27 +08:00
缓存策略增加“允许读取不完整的Partial Content”选项
This commit is contained in:
@@ -18,11 +18,13 @@ type HTTPFileCacheStorage struct {
|
||||
EnableSendfile bool `yaml:"enableSendFile" json:"enableSendfile"` // 是否启用Sendfile
|
||||
|
||||
EnableMMAP bool `yaml:"enableMMAP" json:"enableMMAP"` // 是否启用MMAP
|
||||
EnableIncompletePartialContent bool `yaml:"enableIncompletePartialContent" json:"enableIncompletePartialContent"` // 允许读取未下载完整的Partial Content
|
||||
}
|
||||
|
||||
func NewHTTPFileCacheStorage() *HTTPFileCacheStorage {
|
||||
return &HTTPFileCacheStorage{
|
||||
EnableMMAP: false,
|
||||
EnableIncompletePartialContent: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user