This is a caddy plugin. Works with caddy >= 2.8.0. Sort the request query arguments. Optionally case insensitive.
Once the order has been set in the global options block, use argsort
in any server block
:8881 {
header Content-Type "text/html; charset=utf-8"
respond "Hello."
argsort
}
Once the order has been set in the global options block, use argsort lowecase
in any server block
:8881 {
header Content-Type "text/html; charset=utf-8"
respond "Hello."
argsort lowercase
}
Once the order has been set in the global options block, you ensure query arguments sorting for an upstream server
:8882 {
argsort
reverse_proxy localhost:8883
}
:8883 {
header Content-Type "text/html; charset=utf-8"
respond "Hello."
}