• Resolved japale

    (@japale)


    Hi,

    thanks for the plugin.

    I did the “test cache” and I got an error message:

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

    Error on dynamic page (https://terraincognita.earth): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.

    Error on static resource (https://terraincognita.earth/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.

    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 checked, but I did not find the response header cf-cache-status: HIT.

    Thanks

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

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

    (@isaumya)

    Hi @japale,
    When I check the testcache.html URL using the link you have shared, I sometimes see that it has cf-cache-status: REVALIDATED, cf-cache-status: MISS and sometimes cf-cache-status: HIT.
    Screenshots:

    View post on imgur.com

    Do you have any other page rules inside your Cloudflare account? Can you share a screenshot of the page rule section of your Cloudflare account? Also, are you using any other page caching plugin or server level page caching?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @japale ,
    the plugin is working fine on your website. This is the response of a request for your home page:

    age: 414
    cache-control: s-max-age=604800, s-maxage=604800, max-age=60
    cf-cache-status: HIT
    cf-ray: 5c7b20b38c74c2c2-FRA
    cf-request-id: 04c0d2c4390000c2c2cf33e200000001
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Mon, 24 Aug 2020 06:48:27 GMT
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    host-header: 5d77dd967d63c3104bced1db0cace49c
    server: cloudflare
    status: 200
    vary: Accept-Encoding
    x-cache-enabled: True
    x-proxy-cache: MISS
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-max-age=604800, s-maxage=604800, max-age=60

    If you have other page caching systems actived, please disable them to avoid conflicts.

    I’m marking this thread as resolved but if you have other issue, don’t hesitate to open a new ticket 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Page caching seems not working’ is closed to new replies.