Cloudflare APO
-
Hi Daan
Thanks for making this plugin available, it looks great but I have some questions before I can use it specifically in regards to how it will work with Cloudflare’s APO. I see your plugin description lists “Cloudflare Compatibility Mode” as a PRO feature, but I can’t find any details about this in your docs?
With Cloudflare’s APO a web page could be fully or partially cached and served by Cloudflare, including the HTML and assets (JS/CSS) of the page.
When your plugin updates the GA JS file and it gets a new file name. How does this play ball with Cloudflare’s cached version?
Let’s say for example Cloudflare fully caches the HTML of a web page which references one of your generated GA JS files. For whatever reason the JS file itself is however not cached by Cloudflare. Now your plugin updates the GA JS file, giving it a new file name. When a user requests the web page it still references the old file name in the HTML, so the browser tries to retrieve that old file, presumably triggering a 404 and leading to the user not being tracked.
I am guessing optimally whenever your plugin updates the GA JS file, the whole Cloudflare cache would be purged. Does that happen? Am I missing something?
- The topic ‘Cloudflare APO’ is closed to new replies.