I noticed that enabling APO does not seem to cache content on my website anymore. All requests come with the cf-cache-status: DYNAMIC header, which normally means cache is not being used (the header should be HIT). I’m also seeing these headers: cf-edge-cache: cache,platform=wordpress and x-via: speedwp/origin,cookie. TTFB has also climbed to 100ms+ from the normal 30ms+.
A few days ago, when I first enabled APO, everything was working properly. I did not change anything on my website. I read the documentation online and cannot find what could be the cause of the issue. I have tried disabling all Page Rules and Workers, but to no avail.
If others could check if they are also getting the cf-cache-status: DYNAMIC header while using APO, we could figure out if this is an issue on Cloudflare’s end or if it is only on my end.
Thanks for your help.
Edit: I can confirm that APO is actually caching and returning the cached content properly, but there still an outstanding issue related to Wordpress cookies being detected by APO on different browsers even though there are no logged in users on those browsers.
Edit 2: So I figured out the problem. If you have Taboola on your website, you will also suffer from this issue. There seems to be a conflict with APO’s bypass cache on cookie system and the Taboola cookie that is added to all visitor browsers. This means that all visitors visiting a website with Taboola will only get cached content (HIT) on their first visit when they have no Taboola cookies set. They will get uncached content (DYNAMIC) on all subsequent visits.