caddy/modules/caddyhttp/fileserver
WeidiDeng 22563a70eb
file_server: use the UTC timezone for modified time (#6830)
* use UTC timezone for modified time

* use http.ParseTime to handle If-Modified-Since

* use time.Compare to simplify comparison

* take the directory's modtime into consideration when calculating lastModified

* update comments about If-Modified-Since's handling
2025-02-10 08:39:43 -07:00
..
testdata
browse.go file_server: use the UTC timezone for modified time (#6830) 2025-02-10 08:39:43 -07:00
browse.html
browsetplcontext.go file_server: use the UTC timezone for modified time (#6830) 2025-02-10 08:39:43 -07:00
browsetplcontext_test.go
caddyfile.go fileserver: good default for precompressed (#6736) 2024-12-10 08:31:43 -07:00
command.go
matcher.go fileserver: Fix policy Validate() oversight (#6727) 2024-12-04 14:01:58 -05:00
matcher_test.go
staticfiles.go core: Implement FastAbs to avoid repeated os.Getwd calls (#6687) 2024-11-13 03:55:51 -05:00
staticfiles_test.go