• Hello! For me W3 Total Cache is the best WordPress cache plugin, however a disgusting stiuation is messing me up a lot.

    Font files (.ttf.woff.otf) can not use CDN in my project, so I specified this in the rules:

    Rejected files:
    {Wp_content_dir} /themes/Newspaper/images/icons/newspaper.ttf
    {Wp_content_dir} /themes/Newspaper/images/icons/newspaper.woff
    {Wp_content_dir} / themes / Newspaper / images / icons / * .txt
    {Wp_content_dir} / themes / Newspaper / images / icons / *. Ttf
    {Wp_content_dir} / themes / Newspaper / images / icons / *. Woff
    * .otf
    * .ttf
    * .woff

    Theme file types to upload:
    * .css; *. Js; *. Gif; *. Png; *. Jpg; * .ico; *. Less

    Wp-includes file types to upload:
    * .css; *. Js; *. Gif; *. Png; *. Jpg; *. Xml

    Disable CDN on the following pages:
    {Wp_content_dir} / themes / Newspaper / images / icons /
    {Wp_content_dir} / themes / Newspaper / images / icons /

    So I went to check my amazon s3 and the files really were not there! This is great because it worked! However wordpress continues to import the newspaper.ttf and newspaper.woff files through the CDN:

    https://mecloudfront.cloudfront.net/wp-content/themes/Newspaper/images/icons/newspaper.woff?11
    https://mecloudfron.cloudfront.net/wp-content/themes/Newspaper/images/icons/newspaper.ttf?11

    Directories of the files that I need to load from the server itself:
    /themes/Newspaper/images/icons/newspaper.ttf
    /themes/Newspaper/images/icons/newspaper.woff

    -Because I need to load them from the server itself?
    The amazon s3 has problems with font files

    -What does this error affect?
    Sharing icons and social networks do not load on the site, thus appearing in place, squares of errors, making it impossible to identify them

    I need to fix this error for the site to go online, loading font files from the server itself instead of CDN will be a great solution!

    Thanks for the attention, for me W3 Total Cache is the best WordPress cache plugin!

The topic ‘Hide files for CDN does not work’ is closed to new replies.