@DownPW sure. Let me have a look at this in more detail. I know nginx plus has extensive support for this, but it’s not impossible to get somewhere near acceptable with the standard version.
You might be better off handling this at the Cloudflare level given that it sits in between the requesting client and your server.