I’m considering porting a legacy system to caddy. What makes this different is that the router stuff is not inside the framework but using the server alias and rewriting rules.
What happens when i put a thousand fast (non regexpr) rewrite and a handful of dynamic (with regexpr) rules (all having different basepaths) into the server config file? Is this a O(n) operation or are you doing something better like binary or radix search?
And by the way, what are the precedence rules among rules? This is a serious part missing in the documentation.
Does the longest prefix wins? Are simple rewrites (please call them aliases as any other server does) picked up before the regexpr?