caddy/modules/caddyhttp/fileserver
Kévin Dunglas d6f7f18b04
Merge commit from fork
* fileserver: add failing test for calculateEtag collision

calculateEtag concatenates base36(mtime) and base36(size) with no
separator, so distinct (mtime, size) pairs can yield identical digit
strings and thus identical ETags.

* fileserver: prevent ETag collisions by separating mtime and size components

calculateEtag concatenated base36(mtime) and base36(size) with no
separator, so distinct (mtime, size) pairs could decode to the same
digit string and produce identical ETags.
2026-08-11 13:23:18 -06:00
..
testdata caddyhttp: omit Last-Modified for unusable mod times (#7740) 2026-05-20 16:19:11 +10:00
browse.go fileserver: speed up directory browsing for large directories (#7903) 2026-08-01 00:38:04 +10:00
browse.html browse: Update Caddy logo 2026-06-20 13:45:10 -06:00
browsetplcontext.go fileserver: speed up directory browsing for large directories (#7903) 2026-08-01 00:38:04 +10:00
browsetplcontext_bench_test.go fileserver: speed up directory browsing for large directories (#7903) 2026-08-01 00:38:04 +10:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
caddyfile.go fileserver: append repeated hide subdirectives instead of overwriting (#7817) 2026-06-13 22:44:19 +10:00
command.go fileserver: Add file_limit option for browse (to be experimental) (#6648) 2024-11-05 09:35:32 -07:00
matcher.go fileserver: Replace \ with \\ in file matcher paths 2026-02-19 13:18:14 -07:00
matcher_test.go rewrite: escape file matcher paths before rewriting (#7683) 2026-05-11 17:16:33 -06:00
staticfiles.go Merge commit from fork 2026-08-11 13:23:18 -06:00
staticfiles_test.go Merge commit from fork 2026-08-11 13:23:18 -06:00