@marcel91200 / caddy Mirror · read-only / commits / b9710c6a
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 22:15 UTC

fileserver: Add a few doc lines about Etag file content (#7173)

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>

Luka T. Korošec committed Aug 22, 2025 at 00:02 UTC b9710c6af4f764b463a8e0c080783f2b7fb15ce0
1 file changed +2
modules/caddyhttp/fileserver/staticfiles.go
+2
@@ -167,6 +167,8 @@ type FileServer struct {
167 // If set, file Etags will be read from sidecar files
168 // with any of these suffixes, instead of generating
169 // our own Etag.
170 + // Keep in mind that the Etag values in the files have to be quoted as per RFC7232.
171 + // See https://datatracker.ietf.org/doc/html/rfc7232#section-2.3 for a few examples.
172 EtagFileExtensions []string `json:"etag_file_extensions,omitempty"`
173
174 fsmap caddy.FileSystems