Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter CelsiusAnderson

    (@celsiusanderson)

    Just added the cdn url to CAOS and the site is now blank.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Okay, you can remove the cdn url. I’ve seen enough, I’ll do some testing on my dev-site and get back to you. Thanks.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Sorry, dude, can’t help you. On a default WordPress install, with a few regular plugins installed, the plugin works perfectly. Even when I add your cdn url. It must be a compatibility issue between CAOS, and one of your plugins, theme or server.

    Try disabling all plugins and add the cdn url. If your site loads succesfully, try re-enabling them one by one, to see which one causes the conflict. If you found it, tell me which it is and I’ll see if I can make CAOS compatible.

    If even after disabling all the plugins, you still get the blank page, try switching themes temporarily. If that fixes it, then check out what in your theme is throwing the error.

    If switching themes also doesn’t work, then it must be a server issue: perhaps you have varnish or redis enabled and your forgot to flush the cache after adding the cdn url?

    Those are just some ideas from the top of my head. But like I said, that’s all I can do for you.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Btw, your cdn is accessible by anyone. You should lock it down, so only your domain can access it.

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    Hey thanks…. I will check all the plugins this weekend. I am outside, will be back after 2 days and let you know. By the way, how can I lock the cdn?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    That really depends on your CDN provider. It must be a setting there: ‘allow access from these domains” or something like that.

    Just a note here sorry if it seems like a thread hijack!

    I have the same problem as OP while using my cdn url, the source is cut off and causes blank page either in header or footer.

    I use another plugin called CDN Enabler and by adding your plugin directory to CDN Enabler the source is complete with the correct cdn url in place.

    So by using your awesome plugin for my analytics without the CDN option and using the directory entry in the CDN Enabler settings its works perfectly!

    Personally I think it could be something to do with Autoptimize, doing further testing.

    Thank you!

    Personally I think it could be something to do with Autoptimize, doing further testing.

    easy to confirm; open your site with ?ao_noptimize=1 appended to the URL. this disables AO, so if the problem goes away it’s AO (and we can look for cause & solution), if not, it’s not ??

    enjoy the hunt,
    frank (ao dev)

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    @futtta, thanks for your input. I doubt it has anything to do with AO. I use CAOS combined with AO without issues.

    In other words, it must be something I did wrong, only it’s difficult to figure out what since I can’t reproduce the issue.

    @sixer, your idea actually makes me think that it might be a better idea to revert back one release, and add your suggestion about CDN Enabler to the faq. KeyCDN (the author) did a lot of promoting for CAOS, so it might be about time to return the favor.

    OK confirmed not a problem with AO by using the above suggestion of appending ?ao_noptimize=1. I also believe that it is a good idea @daanvandenbergh to keep your plugin simple and effective!

    Thanks again! Cheers!

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    CDN Enabler works perfectly for CAOS. I use the Autoptimize for the rest of the contents and use CDN Enabler only for CAOS, where I added – wp-content/plugins/host-analyticsjs-local/cache/ in the Included Directories filed.

    Thanks Dan0sz, Grantdb, and Frank Goossens.

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    I have to say that my last comment is not correct.CDN enabler does make the link of CAOS file with cdn, but in CDN there isnt any file, which disable the analytics real time monitoring.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    If CDN Enabler rewrites the URL to local-ga.js correctly, but there is no file on your CDN… Doesn’t that mean that the cdn pull zone is misconfigured?

    Wordpress can’t influence which files get written to your cdn.

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    Yes, in theory that is right, but when CDN enabler is not active there is file in https://cdn.mydomain.com/wp-content/plugins/host-analyticsjs-local/cache/local-ga.js

    Sounds like a CORS issue to me.

    CORS Enabled

    Cheers!

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘local-ga.js does not serve from CDN’ is closed to new replies.