mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-28 00:06:35 +08:00
缓存策略增加“允许读取不完整的Partial Content”选项
This commit is contained in:
@@ -1004,6 +1004,11 @@ func (this *FileStorage) CanSendfile() bool {
|
||||
return this.options.EnableSendfile
|
||||
}
|
||||
|
||||
// Options 获取当前缓存存储的选项
|
||||
func (this *FileStorage) Options() *serverconfigs.HTTPFileCacheStorage {
|
||||
return this.options
|
||||
}
|
||||
|
||||
// 获取Key对应的文件路径
|
||||
func (this *FileStorage) keyPath(key string) (hash string, path string, diskIsFull bool) {
|
||||
hash = stringutil.Md5(key)
|
||||
|
||||
Reference in New Issue
Block a user