NGINX
Damit das bei Geschwindigkeits auch tatsächlich zum Tragen kommt und erst recht, wenn man Divi als Theme benutzt, benötigt Nginx weitere Eintragungen.
Zuerst muss du weitere Mime Types in der Nginx config mime.types hinzufügen. ‚/etc/nginx/‘
font/ttf
application/ttf
application/x-ttf
Dann folgende Einträge in die Nginx config deines Webhost unter NGINX Direktive einfügen.
location /sites/default/files/fontyourface/local_fonts/ {
gzip_types image/svg+xml application/x-font-ttf font/opentype ;
}
Apache
Unter Apache Server sieht es so aus:
# Gzip
<IfModule mod_mime.c>
AddType application/javascript js
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
AddType application/x-woff woff
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</Ifmodule>
# Deflate by FileType
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-woff
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-woff
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>