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