缓存策略增加“允许读取不完整的Partial Content”选项

This commit is contained in:
刘祥超
2024-05-07 20:04:47 +08:00
parent e1b9c152d4
commit 457dacf9e0

View File

@@ -174,8 +174,9 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string
}
var storageOptions = &serverconfigs.HTTPFileCacheStorage{
Dir: "/opt/cache",
EnableMMAP: false,
Dir: "/opt/cache",
EnableMMAP: false,
EnableIncompletePartialContent: true,
MemoryPolicy: &serverconfigs.HTTPCachePolicy{
Capacity: &shared.SizeCapacity{
Count: 1,