• Resolved paulgiorkas32

    (@paulgiorkas32)


    I’ve installed this plugin with Cloudflare hoping to get better speeds for my website, but the cache does not work.

    I get this error, which, as far I understand people are getting it for the past 5 years.

    The error is.

    Page caching seems not working for both dynamic and static pages.

    Error on dynamic page (https://mysite.com): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.

    Error on static resource (https://mysite.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.

    Please check if the page caching is working by yourself by surfing the website in incognito mode ’cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header cf-cache-status: HIT, the page caching is working well.

    • I tried the incognito mode check and I see that my cache status says “Bypass”.
    • I tried disabling the cache and re-enable it from within the plugin, but that didn’t work either.
    • I tried refreshing the website multiple times, but nothing. It still says “bypass”

    Keep in mind that :

    • I have the preloader setting enabled.
    • I have the “Strip response cookies on pages that should be cached” enabled.
    • I have “Enable fallback page cache” enabled.
    • I have Litespeed plugin installed with Cache, Guest Mode and Guest optimization disabled.
    • Google Adsense’s ads stopped showing on website when logged in.

    Can someone please tell me what should I do to get my websites cache working again?

    Also, I want to point out that in your plugin’s description it says and I quote:

    Moreover, this plugin works completely out of the box, all you need to do is provide your Cloudflare Account’s API Key or API Token details and the plugin will do the rest.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    It seems you might have some other cache plugin that is setting the Cache-Control header: https://i.imgur.com/a3Qgo5j.jpeg

    This is why you are having this issue. If you have other caching plugins, I will highly recommend you to disable that and if some server rule is adding the cache control header then please remove that.

    Thread Starter paulgiorkas32

    (@paulgiorkas32)

    I have Litespeed plugin installed with Cache,?Guest Mode and Guest optimization?disabled.

    I don’t have any other caching plugins installed.

    I asked my hosting provider if they have cache enabled and they said no.

    Might be one of the Litespeed cache settings? Again, Cache,?Guest Mode and Guest optimization are?disabled.

    Should I add a Cloudflare rule or something?

    Thread Starter paulgiorkas32

    (@paulgiorkas32)

    FYI, I asked ChatGPT and it says that:

    Why Cloudflare Isn’t Caching

    1. Cache-Control Headers: The Cache-Control: private, must-revalidate header tells any cache (including Cloudflare) not to store the response for shared caching.
    2. X-Wp-Cf-Super-Cache: The headers X-Wp-Cf-Super-Cache: no-cache and X-Wp-Cf-Super-Cache-Cache-Control: no-store, no-cache, must-revalidate, max-age=0 explicitly instruct Cloudflare not to cache the response.

    So, it seems that Super Page Cache for Cloudflare tells CloudFlare not to cache?? Furthermore, ChatGPT provides some possible solutions:

    Steps to Enable Caching

    1. Modify Cache-Control Headers: Change the Cache-Control header in your server or application settings to allow caching. For example:phpCopy codeheader("Cache-Control: public, max-age=86400"); // Allows caching for 1 day
    2. Configure WordPress Cache Plugin: Check the settings of your WordPress caching plugin to ensure it allows Cloudflare to cache the pages. You might need to disable or adjust settings that set the no-cache directives.
    3. Cloudflare Page Rules: Create page rules in Cloudflare to override cache settings. For example:
      • Go to the Cloudflare dashboard.
      • Select your domain.
      • Go to “Page Rules” and create a new rule.
      • Set the URL pattern (e.g., *yourdomain.com/*).
      • Add settings for “Cache Level” to “Cache Everything” and “Edge Cache TTL” to an appropriate duration.
    4. Review Cloudflare Configuration: Ensure Cloudflare’s caching level is set to an appropriate level (Standard or Aggressive).

    By adjusting these settings, you should be able to enable Cloudflare caching for your site.

    What do you think?

    Thread Starter paulgiorkas32

    (@paulgiorkas32)

    Thank you for the bad support on a plugin that supposedly “works completely out of the box“.. (yeah right).

    Anw, I deleted it and turned the page cache on Litespeed cache on.

    Things look so much better now..

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.