• Resolved 989

    (@989-1)


    Hi there
    with both API token/key, I can’t start caching my site
    it says
    undefined Failed to fetch

    Any clue, please?
    Thanks

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

    (@isaumya)

    Can you share a screenshot of the error you are getting? Is your server firewall is blocking the API calls to Cloudflare in any way?

    Thread Starter 989

    (@989-1)

    I found it was apparently a DNS problem even though right now I have this problem…

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://989records.com): Cache status: DYNAMIC - The resource was not cached by default and your current Cloudflare caching configuration doesn't instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.
    
    Error on static resource (https://989records.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Unable to find the Cache-Control response header.
    
    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.
    Mat

    (@mateithemeisle)

    Hello @989-1 ,

    Thank you for your reply!

    It seems like you are using another caching system alongside this plugin. Please make sure to deactivate all other caching systems in your environment and try again.

    Thank you and we’ll await your answer!

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    It seems your cache-control header value is not what this plugins set and it also seems you are using W3 Total Cache for Page Caching: https://i.imgur.com/iQJ7p6N.png

    Please note that while using this plugin you need to make sure there is no other page caching plugin active whether at the WordPress plugin level or Server Level.

    I would suggest Deleting other caching plugins from your site and inside this plugin, setting doing “Deactivate Page Cache” and then “Enable Page Cache”.

    Thread Starter 989

    (@989-1)

    Hi there
    yep, W3 it’s installed, but now

    Consider that we had this error with a fresh WP installation
    And the unique cache plugin installed was yours

    Server-side caching or compressions are disabled

    o will remove agaain w3 and give atry to your than
    when with everything deleted and cache purged everywhere
    I will update you

    Thanks in advance

    Thread Starter 989

    (@989-1)

    Here we are…
    Delete completely W3 and all its files/folders where necessary
    purged cache from CDN
    Installed again your plugin in
    Same error message as above
    Page caching seems not working for both dynamic and static pages.

    From the consolle, Now I have
    cache-control: s-maxage=31536000, max-age=60
    server: cloudflare
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled

    thanks in advance

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @989-1,
    Yes I see that the response headers are now perfect as there is only one cache-control header and the value of it matches with the value of x-wp-cf-super-cache-cache-control header.

    Now I want you to share a screenshot of your Cloudflare Dashboard > Page Rule Section so that I can take a look at it.

    • This reply was modified 3 years ago by iSaumya.
    Thread Starter 989

    (@989-1)

    Nice!
    with great pleasure
    there we go
    https://ibb.co/jb4Xn5m
    thanks

    Plugin Contributor iSaumya

    (@isaumya)

    Alright. So, here lies the issue. It seems you already have 3 page rules there. Cloudflare free account can only have max 3 page rules. I would suggest you to remove these page rules you have added as none of them are needed when you are using this plugin.

    Once you have deleted all the page rules, Go to the CF Dahboard > Cache > Configuration > Set Browser Cache TTL -> Respect Headers

    Then come back to the plugin settings page. Click on Disable Page Cache and then Enable Page Cache.

    This time the plugin will create the page rule it needs automatically. Do not tinker with the page rule created by the plugin.

    Let me know once you have done that. Then share a screenshot of the page rule section again and let me know so that I can test your site.

    Thread Starter 989

    (@989-1)

    Hello again
    got it, in fact, the rules were created for the W3 total cache.
    So, I followed your suggestions but again, if I test the cache from your plugin, I have always the same warning.

    Here are the screenshots
    https://ibb.co/L0LJNqP
    https://ibb.co/crSYc8f

    thanks

    Plugin Contributor iSaumya

    (@isaumya)

    Hmm… It’s wired, it should be HIT but I have a hunch.
    can you disable the Cookie Consent thing and purge the whole cache?

    Let me know when it’s done.

    Thread Starter 989

    (@989-1)

    oh my….
    done so far and still disabled the cookie plugin—
    can you have a look?
    thanks

    Plugin Contributor iSaumya

    (@isaumya)

    Huh! It’s still showing as DYNAMIC. Can you enable the Worker Mode inside the plugin settings?

    Plugin Contributor iSaumya

    (@isaumya)

    Oh darn! No Need Ignore my previous message. The issue is happening because in your page rule added by the plugin it is https:// inetsad of https://.

    This is because inside your WP Settings > General your site URL has been set as https:// inetsad of https://.

    So, you can either go and edit your site URL inside the WP settings and then disable/enable page cache again.

    OR inside the Cloudflare page rule section, edit the page rule added by the plugin and make the https:// to https://. This will solve your issue.

    Thread Starter 989

    (@989-1)

    Dude you are a DRAKE!
    I ought you 5 beer liters ??????????????

    https://ibb.co/g3t8pGF

    it works even with the cookies plugin enabled again
    Thank you so much
    5 stars on the way

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘undefined Failed to fetch’ is closed to new replies.