mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	fileserver: Generate Etag from sidecar file
Don't use the primary/uncompressed file for Etag when serving sidecars. This was just overlooked initially.
This commit is contained in:
		
							parent
							
								
									b9618b8b98
								
							
						
					
					
						commit
						8c72f34357
					
				@ -374,6 +374,7 @@ func (fsrv *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request, next c
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		defer file.Close()
 | 
			
		||||
		info = compressedInfo
 | 
			
		||||
		w.Header().Set("Content-Encoding", ae)
 | 
			
		||||
		w.Header().Del("Accept-Ranges")
 | 
			
		||||
		w.Header().Add("Vary", "Accept-Encoding")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user