mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	缓存策略增加“允许读取不完整的Partial Content”选项
This commit is contained in:
		@@ -176,6 +176,7 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string
 | 
				
			|||||||
	var storageOptions = &serverconfigs.HTTPFileCacheStorage{
 | 
						var storageOptions = &serverconfigs.HTTPFileCacheStorage{
 | 
				
			||||||
		Dir:                            "/opt/cache",
 | 
							Dir:                            "/opt/cache",
 | 
				
			||||||
		EnableMMAP:                     false,
 | 
							EnableMMAP:                     false,
 | 
				
			||||||
 | 
							EnableIncompletePartialContent: true,
 | 
				
			||||||
		MemoryPolicy: &serverconfigs.HTTPCachePolicy{
 | 
							MemoryPolicy: &serverconfigs.HTTPCachePolicy{
 | 
				
			||||||
			Capacity: &shared.SizeCapacity{
 | 
								Capacity: &shared.SizeCapacity{
 | 
				
			||||||
				Count: 1,
 | 
									Count: 1,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user