Support » Plugin: WP Cloudflare Super Page Cache » Preloader for edge cache?

  • Resolved amayahb5

    (@amayahb5)


    Hi, I have two questions.

    1. Is there any option to preload pages and posts in Cloudflare PoPs using the preloader option inside the plugin? Or is it just for preloading cache on the origin server.

    2. Can you please tell what are the values for the following two and what they mean:

    x-wp-cf-super-cache:
    x-wp-cf-super-cache-active

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

    (@isaumya)

    Hi @amayahb5,
    The preloader system is technically supposed to cache content on CF edge as well as the origin server fallback cache. Our preloader uses cURL to preload pages/posts. Now the problem is that most of the times when Cloudflare sees a request is coming via cURL instead of an actual browser, it doesn’t cache the content in its edge server. This is something we can’t do anything about and this is a why the fallback cache will save you when the first request will come as then the fallback cache can instantly provide the HTML and then CF edge will cache it.

    The x-wp-cf-super-cache & x-wp-cf-super-cache-active are some internal headers used by the plugin in order to understand whether or not to cache that page if you have manually excluded that page from being cached etc. This is something you don’t have to worry about thinking as this is purely used by the plugin internally.

    Hi @isaumya,

    I am very interested about your opinion:

    Now the problem is that most of the times when Cloudflare sees a request is coming via cURL instead of an actual browser, it doesn’t cache the content in its edge server.

    , because I have never encountered a problem like this.

    I tries many different kinds of curls, with user-agent, without user-agent, bash curl, php curl, python requests, …
    but every time cloudflare successfully cached ALL the pages in my website.

    Can you please tell me more details about this? If I can reproduce it, maybe I can understand better about cloudflare and improve my preloader script 🙂

    • This reply was modified 4 months, 1 week ago by powercliff.
    • This reply was modified 4 months, 1 week ago by powercliff.
    • This reply was modified 4 months, 1 week ago by powercliff.
    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi @powercliff,
    As you have stated, it is not always, but we have seen this happen multiple times across the website. It’s totally random, sometimes CF caches a request invoked by curl and sometimes it doesn’t.

    Hi @isaumya ,

    Thanks for your reply, I will observe my cache status more carefully from now on.

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