mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:36:27 +03: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue