I enable full page caching for each page except for page with dynamic content (user panel, etc.)
All works perfectly good as usual, except that one page (the homepage), take a very long time to load.
We are using Cloudflare cause this Web Hosting company use WHMCS which is natively slow (all pages were loaded in 15-20sec).
All the pages now load in 1-5sec, but the homepage (https://grape-hosting.com) always takes 20 seconds to be loaded (like if it the origin server was yet requested each time).
I activate the Browser Insights, and I join you the picture that show that there is a real problem with the homepage (the third line of analytics picture).
Another thing that could be linked, all pages of the website work at the Google PageSpeed Insight tool, except the homepage, Here is the error message : Lighthouse returned error: FAILED_DOCUMENT_REQUEST. Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: net::ERR_TIMED_OUT)
My guess is that the page took too long to load and hit PageSpeed’s time limit. What I think is that Cloudflare isn’t caching your content at all because cookies are set on request.
Thanks for your answer. What could I do for that ?
This afternoon I tested another page rule and the CF headers no more indicate that the pages were bypassed, but the homepage take yet a long long time to be loaded.
I’d recommend looking into why your site is loading that slow in the first place. It’s not usual it’s taking so long. An alternative would be caching it on your server.
For the cookies: I guess your CMS automatically sets this cookies and they might be required for things like shopping cart features.
While you do have a page rule that’s set to cache everything, it seems like your website has set the cache-control header to prevent Cloudflare from caching that page.
Cloudflare will not cache a page if the origin server’s response explicitly says to not cache the page.