Support » Plugin: Super Page Cache for Cloudflare » Cloudflare cache Bypassed

  • csasser

    (@csasser)


    Have similar issue to others with “cf-cache-status: BYPASS” on home page.

    I am helping a friend with performance. We are running the latest version. I did notice when testing cache within the plugin, we get a quickly spinning timer icon which quickly disappears but no confirmation or error.

    Site is also using Autoptimizer but I turned this off and it has no affect.

    Site is hosted by InMotion Hosting. Don’t have assess to cPanel, but I can get it, if you would like to see .htaccess file.

    PS: I am using your plugin on other sites and it works great. BTW, all sites are using free Cloudflare.

    Thanks Charlie

    • This topic was modified 1 week ago by csasser.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,
    from what I can see there are multiple reasons behind your cache status BYPASS:
    1. There is a cache-control: max-age=0 being added to the response header beside the one added by the plugin. Please find out what is adding this rule and remove that to ensure only this plugin is handling the cache-control header and nothing else.

    2. I can see that multiple cookies are being set on the page load with the set-cookie header. Please note that anytime Cloudflare will see cookies being set on a page it will not cache that page thinking those cookie values might be used inside the webpage to show dynamically generated data. So, you need to figure out which plugins are adding those cookies and remove them.

    Screenshots:
    https://i.imgur.com/gkgFEW9.jpeg
    https://i.imgur.com/U4RboiG.jpeg
    https://i.imgur.com/e61vdj1.jpeg

    Thread Starter csasser

    (@csasser)

    Thanks Saumya for the detailed reply.

    The cookies are coming from the Microsoft Clarity Plugin. I’m not sure yet if the client is willing to give up this plugin.

    There are other cookies on the site but I guess these don’t have any impact on your plugin.

    I will need to dianose the cache-control issue further if the client decides to deactivate the Clarity plugin. I believe this plugin is similar to Hot Jar.

    PS: What app did you use to see the cookies? I use Chrome Dev Tools and these show differently plus Dev Tools shows more cookies. Are these not a problem?

    Thanks again.

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,

    The cookies are coming from the Microsoft Clarity Plugin. I’m not sure yet if the client is willing to give up this plugin.

    – I don’t think those cookies are coming from Microsoft Clarity. I don’t know what led you to that conclusion. As MS Clarity runs JS so it will not load any cookies in the response header. From what I can see it might be coming from somewhere else: https://cookiedatabase.org/cookie/cleantalk-spam-protect/apbct_/

    I will need to dianose the cache-control issue further if the client decides to deactivate the Clarity plugin. I believe this plugin is similar to Hot Jar.

    – Again Microsoft Clarity is not causing any issues. That cache control either might getting added by some other plugin or some server rules.

    PS: What app did you use to see the cookies? I use Chrome Dev Tools and these show differently plus Dev Tools shows more cookies. Are these not a problem?

    – I literally used Chrome DevTools > Network Tab, checking the response header for the first 200 status request of text/html type. Which is generally the first request like https://example.com/ or https://example.com/some-page/.

    Thread Starter csasser

    (@csasser)

    My Bad. πŸ™‚ I actually noticed when looking at your screen capture U4RboiG.jpeg that it was infact the cleantalk plugin. (that was 2 days so my memory is not so good)

    I did look at the cookies that show in Dev tools under the Network tab for the first request to domain-name.com and cookie sub-tab that shows 14 cookies.

    This is somewhat new to me, but this list and screens are not as obvious to me as your image U4RboiG.jpeg which I actually used a few days ago and discovered the cookies were from Clean Talk based on googling their names.

    Why does my result of 14 cookies differ from you previous screencapture?

    I’m always willing to learn if you have the time to respond. I am not a developer but very technical. πŸ˜‰

    Thanks for all your help.

    Plugin Contributor Saumya Majumder

    (@isaumya)

    It’s not about how many cookie are being loaded on the page what matters is how they are loaded. If they are loaded with page response that is the set-cookie header then CF won’t cache the page.

    Check my screenshots again you will see I’m looking at the response header and not the cookie tab.

    Thread Starter csasser

    (@csasser)

    I must be missing something.

    This is what I see https://charliesasser.com/studio88_response_headers.png

    I see no “set-cookie” here like in your file https://i.imgur.com/U4RboiG.jpeg

    I must be doing something wrong.

    Looks like I need to learn more about Dev Tools. πŸ˜‰

    You don’t need to waste any more time on me. I will try to figure this out.

    I have your plugin working great on other sites.

    I will not be offended if you close this ticket. May be back to you later.

    Thread Starter csasser

    (@csasser)

    Disregard my link in the previous reply and go here.

    https://www.dropbox.com/s/lro91tg7hg1u860/studio88_response_headers.png?dl=0

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,
    I am no longer seeing those cookies. Maybe you have received the plugin that was causing it. Also pages are now being cached at Cloudflare CDN but you have the issue with the extra cache-control header as mention before.

    Thread Starter csasser

    (@csasser)

    You are correct. I didn’t realize I had deactived and forgot to activate the CleanTalk plugin. Will work on cache control issue now.

    I have learned my lesson. β€œDon’t work on a website while watching a football game on TV.” πŸ˜€

    Thanks for helping.

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,
    I am so happy to hear that your issues have been resolved. If you like the plugin. Please consider sharing a review. πŸ™‚

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.