• Resolved rjm2884

    (@rjm2884)


    Hello,

    I have almost successfully implemented CDN with our website, except I notice that navigation arrows or social media icons are all boxes and missing. No matter what I do or turn off this continues to happen. The only way it completely fixes itself is if I disabled W3 plugin. Any ideas or recommendations greatly appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rjm2884

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share your website URL?
    There is a possibility that those files are not on the CDN. Not uploaded.
    There are a couple of options in Performance>CDN that may help with this.
    you can add those types of files in File types to import: which will Automatically import files hosted with 3rd parties of these types (if used in your posts/pages) to your media library.
    Or you can use a custom files list and add the path to those files so they can be uploaded to CDN.
    Thank you!

    Thread Starter rjm2884

    (@rjm2884)

    Hello,

    I think the issue I’m having is with Azure CDN Access-Control-Allow-Origin. I followed this link https://thomasvochten.com/blog/2016/01/wp-cdn-caching/ but I’m still not able to resolve the issue.

    Our font’s icons are being blocked after we enabled CDN with W3 total cache. I have verified that all files are successfully pointing to the CDN and they do exist at the CDN.

    URL: gatuntechnologies.com

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rjm2884

    Thank you for the info. I am getting the Error 1020 when I try to visit your website.
    SO you are using Cloudflare+W3 Total Cache + AzureCDN?
    Are you using Apache or Nginx? or both?
    Is the option “Add CORS header” enabled in Performance>CDN?
    Thanks!

    Thread Starter rjm2884

    (@rjm2884)

    Hi Marko,

    Yes, sorry please try again.
    Yes we are using Cloudflare and W3 Total Cache + Azure CDN.
    This is an apache server.
    ADD CORS header is checked in.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rjm2884

    Still getting the same error Error 1020.
    Thanks!

    Thread Starter rjm2884

    (@rjm2884)

    Sorry, country was still on you should be good to go now.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rjm2884
    Thank you I can see the website now and I can see those files blocked.
    Try adding the following rule to your .htaccess file outside of #W3TC rules:`

    <FilesMatch ".(eot|otf|ttf|woff|woff2)">
      Header set Access-Control-Allow-Origin "*"
    </FilesMatch>

    See if the issue persists.
    Thank you!

    Thread Starter rjm2884

    (@rjm2884)

    Hello,

    I added those lines at the top of my .htaccess saved and restarted apache services, still having the same issue.

    Thread Starter rjm2884

    (@rjm2884)

    Hello,

    I was able to get this resolved. I had to add a CORS rule in Azure CDN.

    Allowed Origins: your site Allowed Methods: Get and Options Allowed Headers: * Exposed Headers: * Max Age: 0

    This seems to do the trick!

    Thanks for helping!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Azure CDN almost working’ is closed to new replies.