How to get the URL fragment with Caddy

In PHP, I can get the fragment like so:
$fragment = parse_url(“http://example.com/site/gallery/1#photo45”, PHP_URL_FRAGMENT);

My question is, how can I get the fragment in Caddy? I need to write some regex and need the fragment in many cases to redirect to the right place. (long story short, I am getting rid of vbseo on vbulletin).

That’s not possible, clients never send the fragment to the server. Not a Caddy limitation, it’s just how the web works.