mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	优化代码
This commit is contained in:
		@@ -256,11 +256,9 @@ func (this *HTTPRequest) doCacheRead(useStale bool) (shouldStop bool) {
 | 
			
		||||
		if this.web.Compression != nil && this.web.Compression.IsOn {
 | 
			
		||||
			_, encoding, ok := this.web.Compression.MatchAcceptEncoding(this.RawReq.Header.Get("Accept-Encoding"))
 | 
			
		||||
			if ok {
 | 
			
		||||
				if reader == nil {
 | 
			
		||||
					reader, _ = storage.OpenReader(key+caches.SuffixCompression+encoding, useStale, false)
 | 
			
		||||
					if reader != nil {
 | 
			
		||||
						tags = append(tags, encoding)
 | 
			
		||||
					}
 | 
			
		||||
				reader, _ = storage.OpenReader(key+caches.SuffixCompression+encoding, useStale, false)
 | 
			
		||||
				if reader != nil {
 | 
			
		||||
					tags = append(tags, encoding)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user