Recently, I’ve added the necessary Cache Rules in Cloudflare and enabled the Remove Cache Buster Query Parameter option in the plugin settings. I cleared the cache. But the website is still using cached copies, which is annoying since the WordPress Admin bar is not present.
I’m logged in… I verified that. And if I clear the cache again, and reload the page, it pulls a non-cached version with the Admin bar present… but only until a non-logged in browser loads the page, after which I’m just served the cached version again.
I have a couple other Cache rules in Cloudflare (one to enable serving stale content, and one to disable caching of a particular query string, but even when those are disabled the problem remains, unless I add ?swcfpc=1 to the URL, which I’m not supposed to be able to do… right?)
The page I need help with: [log in to see the link]
Hi @jaredratcliff, Can you share the screenshot of the cache rules that you have added so that I can quickly check them and see if you have made any mistakes? Thanks
I only changed two things in the rules: (1) the name of each Cache Rule, to remind me which plugin it was used for, and (2) I added a string to the “cache eligible requests & ignore query…” rule, to have it ignore an additional query my site uses. But I wouldn’t think that either of those should break anything.
The first two screenshots are my rules, but as I mentioned, even when they’re disabled the problem remains. But here they are:
And the next four are the ones for the SPC plugin. Number three (default bypass cookies) doesn’t show the entire code, so I added it below the picture.
(And the full code string):
( http.host eq “example.com” and (http.cookie contains “wordpress_logged_in_” or http.cookie contains “comment_” or http.cookie contains “woocommerce_” or http.cookie contains “wordpressuser_” or http.cookie contains “wordpresspass_” or http.cookie contains “wordpress_sec_” or http.cookie contains “yith_wcwl_products” or http.cookie contains “edd_items_in_cart” or http.cookie contains “it_exchange_session_” or http.cookie contains “comment_author” or http.cookie contains “dshack_level” or http.cookie contains “auth_” or http.cookie contains “noaffiliate_” or http.cookie contains “mp_session” or http.cookie contains “xf_” or http.cookie contains “mp_globalcart_”) and not http.request.uri.path contains “.” )
Hi @jaredratcliff, I think you did not followed the guide properly the hostname should be replaced with your own hostname i.e. example.com will be replaced with www.jaredratcliff.com. I think that is your issue.