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
command.go
matcher.go
matcher_test.go
staticfiles.go
staticfiles_test.go