From the Mozilla web docs:
The HTTP
304 Not Modified
client redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource. This happens when the request method is safe, like aGET
or aHEAD
request, or when the request is conditional and uses aIf-None-Match
or aIf-Modified-Since
header.The equivalent
200
OK
response would have included the headersCache-Control
,Content-Location
,Date
,ETag
,Expires
, andVary
.
Basically, when your browser re-requests the same file, it sends If-Modified-Since
and Caddy’s file server can say “nope, the file hasn’t been modified since you last checked, your cached copy is still good” (this is Status 304).