• Resolved neo4evr

    (@neo4evr)


    Hi,

    I have configured W3 Total Cache with KeyCDN service. But the font files (woff and woff2) are not being delivered from the CDN. They are downloading from my shared hosting server.

    All other files seem to be delivered fine from KeyCDN.

    How do I make KeyCDN deliver the font files from the CDN service and not from my server? I have already mentioned *.woff and *.woff2 in “Theme file types to upload:” option from the CDN page.

    Thanks!

    The page I need help with: [log in to see the link]

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

    (@vmarko)

    Hello @neo4evr

    Thank you for your question and I am happy to assist you with this.
    As I can see the woff2 file is being served from the CDN.
    You can try adding the *.woff;*.woff2 in Perfomance>CDN>Files types to import and also try using a custom files list and add the path of the files for example:
    /wp-content/themes/kallyas/template_helpers/icons/glyphicons_halflingsregular/glyphicons_halflingsregular.woff
    Make sure to save all settings and purge the cache once done.

    I hope this helps!

    Thread Starter neo4evr

    (@neo4evr)

    Hi,
    I have added the following woff files on each line:

    /wp-content/themes/kallyas/template_helpers/icons/kl-social-icons/kl-social-icons.woff
    /wp-content/uploads/zn_fonts/icomoon/icomoon.woff

    But it still does not work. I purged both the local cache and CDN cache. The woff files are not getting served by CDN.

    I have also added the *.woff;*.woff2 to the “File types to import” section.

    Not working still ??

    • This reply was modified 3 years, 5 months ago by neo4evr.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @neo4evr

    Thank you for the information.
    I can see that the fonts are uploaded to CDN but not served from the CDN.
    It appears that your theme or a plugin is not using the default attachment functions to display a font, skipping the wp_get_attachment_url filter.
    URLs are served on the page in some non-regular way. The plugin does the best but may not know code business logic and there are still cases when code will “win” and put the original URL on-page.
    e.g. from javascript code when URL is concatenated or coming from ajax response when URLs dont pass filter as mentioned above.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘KeyCDN configured through W3 Total Cache not caching the font files’ is closed to new replies.