Plugin Contributor
iSaumya
(@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
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
iSaumya
(@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/
.
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
iSaumya
(@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.
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.
Plugin Contributor
iSaumya
(@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.
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
iSaumya
(@isaumya)
Hi,
I am so happy to hear that your issues have been resolved. If you like the plugin. Please consider sharing a review. 🙂