Score:0

Caddyfile header directive unable to override file_server ETag

cn flag

Invoking caddy run against the Caddyfile:

http://localhost
header ETag forcedValue
file_server

I expect curl -v http://localhost/Caddyfile to show a response with the ETag forcedValue.

Instead, a generated tag based on the Caddyfile's mtime and size is returned.


Things attempted:

  • order header before file_server / order header after file_server
  • tested whether header -ETag can remove the etag altogether (it does).
Score:0
cn flag

Setting the defer flag allows the ETag set by file_server to be overridden.

http://localhost
header {
  ETag forcedValue
  defer
}
file_server
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.