• Hi!

    First of all I want to thank you guys for creating this free but extensive plugin. At our company we are trying to improve performance of our website (uwcomputerstudent.nl). We use Cloudways hosting and are trying to set up Cloudflare Caching (Free) but I can’t seem to get it to work. The header still shows x-cache: MISS and when clicking Test cache inside your plugin I get the message: Page caching seems not working for both dynamic and static pages. I purged all cache (from wp-admin, cloudflare and cloudways dashboard), checked the page rules, workers, etc. I checked the FAQ and some other topics here but no luck.

    You can find all important info and screenshots here: https://imgur.com/a/NmPsQ1r

    Note: we are using Object Caching Pro and Varnish. We don’t have any other optimization plugin active inside WP

    If you need any more info, let me know
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Please note, caching of static pages is working now, so the following link is successfully cached: https://uwcomputerstudent.nl/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html

    Right now we are still getting x-cache: MISS and cf-cache-status: BYPASS for dynamic pages (like every page)

    We also contacted Cloudways but they couldn’t help

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @toineenzo,
    Just checked your website. As I can see the plugin is setup correctly on your website but Cloudflare is unable to cache your website because of HTTP cookie. Screenshot:

    When Cloudfalre sees set-cookie in the response header, it things that the page content might be dynamically dependent on the cookie value and hence the page content is not cached. You should look for which plugin is adding that cookie and consider deactivating it and test again.

    @isaumya Thank you for your response and pointing me in the right direction. Never thought about a cookie causing this problem. Should it be possible to exclude this cookie in Cloudflare Page Rules so Cloudflare ignores it and will still cache all my pages?

    Or could it also be enough to enable this option? We do use some custom written scripts and plugins like a magic login link that our customers use to login to their member dashboard. So I want to make sure this setting will not cause any problems

    To add, I just discovered that the Cloudflare Page Rule ‘Bypass Cache on Cookie’ is only for the Cloudflare Business plan. Is there any other way I can achieve this?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @toineenzo,
    1. If you want to use the Stripe Response Cookies option then use it with caution. As enabling that option will remove all the cookies from the pages. Rather than doing that it’s better to find which plugin is adding that cookie and disable that plugin.
    2. Regarding Cloudflare Rules, you can tell Cloudflare to bypass cache if certain cookie is present which it is doing right now on your site but you cannot ask Cloudflare to ignore HTTP cookies.

    P.S.: You are having this problem because the plugin is adding the cookie as HTTP cookie at the PHP level. If the cookies are added via JS like all the scripts do, then they are fully cache friendly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Keep getting x-cache: MISS with Cloudways hosting. What am I doing wrong?’ is closed to new replies.