I’m running several sites on cloudflare and am already doing this for a while. Historically different caches involved in the stack when using WordPress have always been a pain but this time I’m really having a hard time getting behind what’s going on here. I have already disabled server side caches to make sure there’s no problem here,.
I am using CFs Wordpress integration including the plugin. Things are connected and the cache refresh of pages that are being updates in WordPress seems to generally work fine.
It seems like CF only delivers a change to the browser when this sends
cache-control: no-cachewith the request. At least that’s what I found so far in chrome. I can use completely new chrome profiles, incognito windows and what not but I only get the right content after either hitting shift+refresh or disabling the cache in the developer tools. AFAIK there shouldn’t be any cache in new incognito sessions and also not in fresh guest profiles.
Interesting Safari 14 (macOS 11.1) shows a didfferent game where I seem to get the fresh content without forcing anything.
On a colleagues mac with Safari 14.0.1 (macOS 10) the problem is similar to Chrome on my computer except the problem that even shift+refresh doesn’t help there.
I’m really lost on how to tackle this issue as obviously I want to make sure my visitors get to see the latest content.
Response Headers from the old content clearly show the age
age: 240925 allow: GET, POST, HEAD, PURGE cache-control: public, no-cache cf-apo-via: cache cf-cache-status: HIT cf-edge-cache: cache,platform=wordpress
I’m thankful for any helpful in put on that issue. Not sure where to go next to find the issue.