mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	支持不缓存条件
This commit is contained in:
		@@ -39,6 +39,9 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if cacheRef.Conds.MatchRequest(this.Format) {
 | 
			
		||||
			if cacheRef.IsReverse {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
			this.cacheRef = cacheRef
 | 
			
		||||
			refType = "server"
 | 
			
		||||
			break
 | 
			
		||||
@@ -53,6 +56,9 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
 | 
			
		||||
				continue
 | 
			
		||||
			}
 | 
			
		||||
			if cacheRef.Conds.MatchRequest(this.Format) {
 | 
			
		||||
				if cacheRef.IsReverse {
 | 
			
		||||
					return
 | 
			
		||||
				}
 | 
			
		||||
				this.cacheRef = cacheRef
 | 
			
		||||
				refType = "policy"
 | 
			
		||||
				break
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user