Htaccess wordpress cloudways cache control

Hello everyone,

I'm making a wordpress website.
I'm using Cloudways and Cloudflare as CDN and there is one user specific page on my site which I would like to cache on user's browser for 5 mins but NOT cache it on Cloudflare CDN.

I tried editing htaccess file to set Cache Control Header for specific path in URL e.g.
myDomain.com/myPath (but not for any subpaths) so that it caches it on browser but not on CDN (private).

Unfortunately for some reason it doesn't work.
Does any know how to configure it?
I have no experience of coding apache server so basically I guess I'm looking for a few lines of code which would make that work.
I'm using breeze plugin.

Thanks in advance 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer