ESI (Edge Side Includes) | WordPress.org

Hi @ofmarconi,
Unfortunately that won’t be possible as Cloudflare only caches static files and not dynamic resources. So, when CF is caching a page, it is basically caching the page HTML as if it’s a simple HTML file with no dynamic element to it.

So, for a dynamic request where the data needs to be generated on the server side to dynamically create the page HTML, how will this work? As a example when someone login anywhere, it shows Welcome {User Name}. But if that page is hypothetically being served from cache then at the time of page being cached if John logged into the site and then the system cached it then it will keep showing Welcome John to everyone which makes no sense as in this cache the request doesn’t even reach to the origin server and instead is being served from Cloudflare cache.

@isaumya Thanks for the explanation my friend!

 

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