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

    (@salvatorefresta)

    Hi @bhagwad ,
    this can happen. Please clear logs, click on test cache send us the generated log file so we can analyze the response packet.

    Sometimes Cloudflare send back a different response packet when the request is made via cURL instead of real browser. Or sometime it needs more time to activate the page cache.

    Good to know that it is a false negative ??

    Don’t forget to drop a review ??

    Thread Starter bhagwad

    (@bhagwad)

    Thanks for the response! Here’s the debug log:

    [2020-08-31 11:35:15] [cloudflare::get_cloudflare_cookie] No cookies found in response HTTP packet
    [2020-08-31 11:35:15] [cloudflare::page_cache_test] Start test to https://www.wp-tweaks.com with headers Array
    (
    [timeout] => 10
    [sslverify] =>
    [user-agent] => Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
    [headers] => Array
    (
    [Accept] => text/html
    )

    )

    [2020-08-31 11:35:15] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
    ‘data’ =>
    array (
    ‘server’ => ‘nginx’,
    ‘date’ => ‘Mon, 31 Aug 2020 11:35:15 GMT’,
    ‘content-type’ => ‘text/html; charset=UTF-8’,
    ‘content-length’ => ‘22754’,
    ‘x-cache-enabled’ => ‘True’,
    ‘x-pingback’ => ‘https://www.wp-tweaks.com/xmlrpc.php’,
    ‘link’ => ‘<https://www.wp-tweaks.com/wp-json/&gt;; rel=”https://api.w.org/&#8221;, <https://www.wp-tweaks.com/wp-json/wp/v2/pages/72&gt;; rel=”alternate”; type=”application/json”, <https://www.wp-tweaks.com/&gt;; rel=shortlink’,
    ‘cache-control’ => ‘s-max-age=2592000, s-maxage=2592000, max-age=60’,
    ‘x-wp-cf-super-cache’ => ‘cache’,
    ‘x-wp-cf-super-cache-active’ => ‘1’,
    ‘x-wp-cf-super-cache-cache-control’ => ‘s-max-age=2592000, s-maxage=2592000, max-age=60’,
    ‘vary’ => ‘Accept-Encoding’,
    ‘content-encoding’ => ‘gzip’,
    ‘alt-svc’ => ‘quic=”:443″; ma=86400; v=”43,39″‘,
    ‘host-header’ => ‘624d5be7be38418a3e2a818cc8b7029b’,
    ‘x-proxy-cache’ => ‘HIT’,
    ),
    ))
    [2020-08-31 11:35:15] [cloudflare::get_cloudflare_cookie] No cookies found in response HTTP packet
    [2020-08-31 11:35:15] [cloudflare::page_cache_test] Start test to https://www.wp-tweaks.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html with headers Array
    (
    [timeout] => 10
    [sslverify] =>
    [user-agent] => Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
    [headers] => Array
    (
    [Accept] => text/html
    )

    )

    [2020-08-31 11:35:15] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
    ‘data’ =>
    array (
    ‘server’ => ‘nginx’,
    ‘date’ => ‘Mon, 31 Aug 2020 11:35:15 GMT’,
    ‘content-type’ => ‘text/html’,
    ‘content-length’ => ‘160’,
    ‘last-modified’ => ‘Mon, 31 Aug 2020 05:32:13 GMT’,
    ‘etag’ => ‘”ba-5ae25b98db195-gzip”‘,
    ‘vary’ => ‘Accept-Encoding’,
    ‘content-encoding’ => ‘gzip’,
    ‘alt-svc’ => ‘quic=”:443″; ma=86400; v=”43,39″‘,
    ‘host-header’ => ‘624d5be7be38418a3e2a818cc8b7029b’,
    ‘x-proxy-cache’ => ‘MISS’,
    ‘accept-ranges’ => ‘bytes’,
    ),
    ))

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @bhagwad ,
    as you can see by yourself, on both response packet miss the “cf-cache-status” response header, so the error message is correct also if on real browsing the cache is working well ??

    Let me know if you try again. Maybe now the response header appears

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Says Cloudflare Not Working, When it Is…’ is closed to new replies.