I am investigating this, as it keeps coming up from many different customers.
First draft at it
https://github.com/discourse/discourse/pull/39062