How to have case-insensitive worker routing rules?

In the Worker documentation I see that route patterns are case-sensitive:

Route patterns are case sensitive, e.g. example.com/Images/* and example.com/images/* are two distinct routes.

However for good SEO I would prefer to 301 redirect any URL containing an uppercase character to all lowercase to avoid the 404 errors currently generated.

For example:

Worker route: domain.com/examplepath*

Current experience: domain.com/examplePATH = 404 error

Desired experience: domain.com/examplePATH = 301 redirect to domain.com/examplepath

Interested in how you might be working around this issue?

Here is an example for your redirect, adapt to your project:

route = http://domain.com/*