Viewing 4 replies - 31 through 34 (of 34 total)
  • Thread Starter CelsiusAnderson

    (@celsiusanderson)

    add_header Access-Control-Allow-Origin *; has been there in ngnix from the beginning of my website.

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    I don’t know how you guys can explain this, but this is how it works.

    I use cloudfront for cdn, so I entered into my distribution settings>Behaviors, then select the origin, next Edit > Forward Headers > from “None” I choose it to “All”. Once saved, the https://cdn.mydomain.com/wp-content/plugins/host-analyticsjs-local/cache/local-ga.js file appears instantly, but it breaks the site appearance (CSS issue). Then I changed the Forward Headers back to None, and save it again. And everything working as expected including the local-ga.js from cdn and real time monitoring.

    I think changing the Forward Headers setting in cloudfront triggered it to load all the objects.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    At least it’s fixed now, Thomas. Thanks for your input. ??

    Thread Starter CelsiusAnderson

    (@celsiusanderson)

    I have lost some good amount of sell for last 4 days, as one must use wc-api in the exception list of cdn enabler if using woocommerce. ??

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