I am having issues with Cloudflare and have been having these issues for quite some time. There’s the odd occasion my articles are missing the sidebars both left and right. On the left tends to be a jump to the content section and on the right has the review, plus some other widgets but they’re just gone randomly at times.
I suspect Cloudflare to be causing this but I’m not sure what could be doing it. I’ve attached a couple of screenshots and the article in question at the moment is this.[Article missing the sidebar](https://www.onlycomicuniverse.com/the-final-trailer-for-the-second-part-of-doom-patrol-has-released/)
I recently moved my services over to Bunny (wasn’t a fan hence the reason for coming back) and it never once did it there. That’s how I know the issue sort of relies on Cloudflare. It’s also frustrating because it doesn’t do it all of the time and as soon as I clear the cache, it reverts back to normal but I don’t want to keep purging every hour to ensure my theme works as intended. I use WordPress as well if that helps and I’m a noob when it comes to web development. I have attached a screenshot with the sidebar missing.
Cloudflare does not cache HTML by default. You must have enabled a Page Rule with Cache-Everything setting, or a Cache Rule, or APO for WordPress for the page to be cached. When HTML is cached and the CSS file changes, the cached file will still request the old CSS file, and you see the odd page displayed. You can check that by visiting your site with Dev Tools open, Network tab.
You need to make sure that you hit Purge Everything in Cloudflare cache after you make changes to the website.
Thank you for your help. I do see 2 rules in place but I don’t recall ever setting these up. I’ve attached an image. I don’t know what these do as I’m a huge beginner with stuff like this. I do have the HAR files as well for the article pre and post cache as well.
If you didn’t, someone else did. Are there other users in your Cloudflare account? If not, you should investigate your Audit Logs and if you find things an unauthorized user did, you need to change your passwords etc. Secure compromised account · Cloudflare Fundamentals docs
You should disable both.
Your site is running APO for WordPress, which takes care of purging the pertinent cached pages when changes happen, and this function is being hampered by your first Page Rule.
Your second Page Rule is not even triggered, as it would have to come before the first to be effective.
I really appreciate all of your help. I think it may have been me when I was using guides way back when I signed up, I just can’t remember it.
In terms of this particular issue, do you think this could potentially solve the issue with the missing sidebars? I’ve deleted those 2 rules anyway but I’m just curious if you think it could fix it as it’s been annoying me for over 2 years.
I will do. Hopefully that works and if it does, you’re a hero. Again, I really appreciate your help. I’ll monitor it over the next few days and post back either way to let you know
Just thought I’d jump in and update. I’ve managed to fix the issue. Turns out it wasn’t anything to do with cache. I had “hide sidebars and footer” turned on for mobile within my WP theme and this was causing conflicts between desktop and mobile. Again, thank you for all of your help!