Dynamic named matchers not registered in Caddyfile
bug :lady_beetle:good first issue :baby_chick:
### Issue Details
Affecting both v2.11.2 and v2.11.3, named matchers (likely, I have no idea if it can be confirmed) no longer get registered asap, causing the syntax below to fail.
```Caddyfile
(preshrankBlob) {
@{args[0]}_{args[1]} {
header Accept-Encoding *{args[2]}*
header !Connection
path *.{args[0]}
file {path}.{args[1]}
}
handle @{args[0]}_{args[1]} {
rewrite {path}.{args[1]}
header Content-Encoding {args[2]}
header Content-Type {args[3]}
header X-Served-Path {path}.{args[1]}
header Cache-Control "min-fresh=20, max-age={args[4]}, no-transform, proxy-revalidate"
header Vary "Accept-Encoding, Authorization"
}
}
(preshrankMatrix) {
import preshrankBlob {args[0]} br br {args[1]} {args[2]}
import preshrankBlob {args[0]} zst zstd {args[1]} {args[2]}
import preshrankBlob {args[0]} gz gzip {args[1]} {args[2]}
}
example.com {
import preshrankMatrix html text/html 120
}
```
```
Error: getting matcher module '@html_br': module not registered: http.matchers.@html_br
```
### Assistance Disclosure
AI not used
### If AI was used, describe the extent to which it was used.
_No response_
6 条评论