Using Cloudflare caching on wordpress with front-end user logins

I have found the answer there:
http://jhewitt.net/2018/12/improving-wordpress-speed-with-cloudflare-workers/

Using Workers you can examine a request for WP cookies and exclude it from the cache. This solution works well as I have implemented it.