Sample script is provided here:
But specifically created for Wordpress:
I hope someone can create a XenForo version of it.
templates/examples/edge-cache-html at main · cloudflare/templates
A collection of starter templates and examples for Cloudflare Workers and Pages - cloudflare/templates
github.com
But specifically created for Wordpress:
templates/examples/edge-cache-html/WordPress Plugin at main · cloudflare/templates
A collection of starter templates and examples for Cloudflare Workers and Pages - cloudflare/templates
github.com
I hope someone can create a XenForo version of it.