https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857
CloudFlare CDN and Discourse have not historically played well together, so we do not recommend running CloudFlare CDN at this time.
Since many users had issues with it, you can check the search and maybe find a solution in it: Search results for 'cloudflare #support ' - Discourse Meta