• Resolved dasword

    (@dasword)


    Well, cloudflare CDN is not working in my website page, “Page caching seems not working for both dynamic and static pages.” is showed after testing the cache, there aren’t any cf-cache-status: HIT also even in private browser. Ofc I’m using litespeed cache also but none of the cache settings and CDN using in there. I even closed the cloudflare API there. Can help me to figure out what happeded?

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

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

    (@isaumya)

    Hi @dasword,
    It seems you haven’t enabled the orange cloud inside your Cloudflare DNS page for the A record/ CNAME record for your domain. That’s why the requests are not proxying through Cloudflare despite your domain using Cloudflare nameservers.

    Please enable the Orange cloud inside the DNS page for your main A record and CNAME records.

    Thread Starter dasword

    (@dasword)

    Ya, I enabled all of the proxy button but only one, idk why, the A record which my ip address pointed to my domain name, everytime I enabled the proxy status, the whole website will go down. So I’m quite?headachy?also。
    Here is the img of my problem.
    https://ibb.co/2jrkcFb
    When I enable the proxy of my domain A record, my website will be down, on the other hand disable it again will make website active again. IDK why this problem is only happened to me since most of them in Youtube is ok.
    Is it the problem I am using the SSL of ZeroSSL instead of using cloudflare one?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @dasword,
    Your DNS setup is wrong. You have disabled the orange cloud where it is needed. Check: https://i.imgur.com/iDFHFi6.jpeg

    “When I enable the proxy of my domain A record, my website will be down”
    – That is super wired. Yes it might be SSL issue with your website. Inside Cloudflare SSL dashboard you can set the SSL mode to Flexible and see if that resolves your problem.

    Thread Starter dasword

    (@dasword)

    Hi, well my default SSL settings is flexible, but after changing to either full or full strict mode, I can finally enable the proxy status of my A record of domain name. But then, I still cannot use the cache plugin, here are images.
    https://ibb.co/MnZ8Jnz
    https://ibb.co/tCsZbtV

    And here are my DNS records, anything wrongly configuring?
    https://ibb.co/RYGjvG9

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @dasword,
    Can you share a screenshot of the Page Rule section of your Cloudflare account?

    Thread Starter dasword

    (@dasword)

    Well, I’m not using any page rules but here you are
    https://ibb.co/TrQmv33

    Plugin Contributor iSaumya

    (@isaumya)

    if you are not seeing any page then that’s the problem. Inside the plugin settings page disable and enable cache again so that the plugin can create the page rule it needs

    Thread Starter dasword

    (@dasword)

    Well, I am using API Tokens as authentication before, and I reset all settings and setup it again, and kept using API token (also tried reset the API token), but still page rules are not created. But then after that I try using the API Key, and it works, the page rules are created. I think there is some problem between API Token authentication approach, not that sure. Well, ltr than that I try to connect the plugin cache function again, success, here is the results.
    https://ibb.co/fX6QrM0
    https://ibb.co/qmxNth3

    TQ very much! But you may check the API Token Authentication if it works properly.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @dasword,
    From the screenshots you have provided I can see that the caching is working properly. Maybe the API token doesn’t have the proper permissions. Have you tried to use Global API key in case you are facing issues with tokens? But from my testing I do not see any issues with tokens if the token has proper permissions.

    Thread Starter dasword

    (@dasword)

    Ya, I tried to use API Key because facing issues with API Token, I’m sure that API Token is not working on me while API Key does.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @dasword,
    That means your API Token doesn’t have the proper permmissions.

    Thread Starter dasword

    (@dasword)

    How can I get a proper permission of Cloudflare API Token?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @dasword,
    When creating API Token, you have an option to give permissions to the token.

    Log in to your Cloudflare account and click on My Profile.
    Click on API tokens > Create Token > Custom Token > Get started
    Enter a Token name (example: token for example.com)
    
    Permissions:
    -> Account - Account Settings - Read
    -> Account - Worker Scripts - Edit
    -> Zone - Cache Purge - Purge
    -> Zone - Page Rules - Edit
    -> Zone - Zone Settings - Edit
    -> Zone - Zone - Edit
    -> Zone - Worker Routes - Edit
    
    Account resources:
    -> Include - All accounts
    
    Zone resources:
    -> Include - Specific zone - your domain name
    
    Click on Continue to summary and then on Create token.
    Enter the generated token into the form below and click on Update settings.

    Hope this helps.

    Thread Starter dasword

    (@dasword)

    Thanks very much!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘CDN not work’ is closed to new replies.