• Resolved Barkokhba

    (@barkokhba)


    Hi,

    First, thank you for a great plugin.
    Today, out of the blue, an issue appeared.

    I was using the plugin successfully for a while when now it returns this: cf-cache-status: REVALIDATED

    I have searched the forum and found one similar issue but no solution.

    Any help is highly appreciated!

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @barkokhba ,
    I see a cache-control: max-age=0 as response and no one of headers of my plugin. If you are using wp-rocket please enable the option Overwrite the cache-control header for WordPress’s pages using web server rules and disable the page caching feature of wp-rocket with its free addon:

    https://docs.wp-rocket.me/article/61-disable-page-caching

    If you want a page cache as fallback to Cloudflare cache, please wait the release of the new version of my plugin. You can still use other plugins (such like WP-Rocket) to make other on page optimizations.

    Let me know

    Thread Starter Barkokhba

    (@barkokhba)

    Hi @salvatorefresta,

    Thank you for your quick reply! Much appreciated.
    I have added the addon as suggested which resulted in your plugin’s headers reappearing.
    The cf-cache-status is now BYPASS.

    I have cleared WP Rocket cache, Cloudflare cache, and varnish cache on server level to no avail.

    What am I missing?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @barkokhba ,
    now it works. This is the response of your home page:

    HTTP/2 200
    date: Fri, 17 Jul 2020 09:11:14 GMT
    content-type: text/html; charset=UTF-8
    set-cookie: __cfduid=d2458cecd387e1a43de5a97dc444228591594977074; expires=Sun, 16-Aug-20 09:11:14 GMT; path=/; domain=.****.com; HttpOnly; SameSite=Lax; Secure
    x-cf-powered-by: WP Rocket 3.4.3
    x-xss-protection: 1; mode=block
    x-pingback: https://slowtravelguide.com/xmlrpc.php
    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
    cache-control: s-max-age=604800, s-maxage=604800, max-age=60

    vary: Accept-Encoding,User-Agent
    age: 10
    x-cache: MISS
    cf-cache-status: HIT
    cf-request-id: 03fda3d6040000cd32b4048200000001
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    server: cloudflare
    cf-ray: 5b42d59cdc23cd32-FCO
    alt-svc: h3-27=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-29=”:443″; ma=86400

    Thread Starter Barkokhba

    (@barkokhba)

    Hi @salvatorefresta,

    I can’t believe how quickly you respond!
    It does work on the home page, and also on other pages that I’ve tested.

    Some still give a BYPASS result though, like this one: https://slowtravelguide.com/carpet-fields-antalya-turkey/

    Is it a matter of waiting it out? Or could something else be causing this?

    On another note, coming back to your original remark “If you want a page cache as fallback to Cloudflare cache, please wait the release of the new version of my plugin. You can still use other plugins (such like WP-Rocket) to make other on page optimizations.” Will this means leaving the current settings as they are, WP Rocket addon included? And just updating your plugin?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @barkokhba ,

    I can’t believe how quickly you respond!

    I reply asap I can 🙂

    Some still give a BYPASS result though, like this one: https://slowtravelguide.com/carpet-fields-antalya-turkey/

    This is due to some cookies (cloudflare does not cache pages with cookies by default, unless you strip them out. There is an option to do that on plugin’s settings page).

    If you try to visit the page in incognito mode, without cookies, you’ll receive an HIT

    Will this means leaving the current settings as they are, WP Rocket addon included? And just updating your plugin?

    Yes, just updating and activating the fallback cache option. It automatically disable the WP Rocket page cache, so you can also remove the addon.

    Thread Starter Barkokhba

    (@barkokhba)

    Thank you so much for your help and crystal clear explanations!
    That did the trick indeed.

    Looking forward to the next version of the plugin and buying you that coffee for sure! 😉

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Thank you so much for your help and crystal clear explanations!

    You’re welcome! Please drop a rewiew if you like it 🙂

    Looking forward to the next version of the plugin and buying you that coffee for sure! 😉

    I’m a coffee addict (but more of beer :D)

    Thread Starter Barkokhba

    (@barkokhba)

    Review is on its way!
    Beer it is.

    And meanwhile I have an additional question. (sorry!)

    I get this in my error logs:

    Got error ‘PHP message: WordPress database error Table ‘+++++++++++.wp7q_swcfpc_logs’ doesn’t exist for query DELETE FROM wp7q_swcfpc_logs WHERE date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 7 DAY)) made by require(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘plugins_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, SW_CLOUDFLARE_PAGECACHE->__construct, SW_CLOUDFLARE_PAGECACHE->include_libs, SWCFPC_Logs->__construct, SWCFPC_Logs->delete_logs_older_than_days’

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    This is a bug fixed on next release. Please delete the option swcfpc_version from wp-options MySQL table

    Thread Starter Barkokhba

    (@barkokhba)

    Done. Thank you once more, and have a great day!

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

The topic ‘cf-cache-status: REVALIDATED’ is closed to new replies.