• Resolved Jonas

    (@gnuworld)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Cloudflare Compatibility is for Stealth Mode, which is a Pro feature, indeed.

    This option is more related to Cloudflare’s DNS feature, then its APO feature.

    The filename isn’t updated each time. The filename remains the same. For that reason I’m not expecting any issues with Cloudflare’s APO.

    Does that answer your question?

    Thread Starter Jonas

    (@gnuworld)

    Yes, thank you it does. Wrong assumption on my part about the file name changes. Thanks Daan, much appreciated.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    No problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cloudflare APO’ is closed to new replies.