Store as /etc/httpd/conf.d/enable-font-caching.conf
:
<IfModule mod_expires.c>
# Activate mod
ExpiresActive On
# Declare fonts content-type
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
# Set cache duration
ExpiresByType application/x-font-woff "access plus 1 years"
ExpiresByType application/x-font-ttf "access plus 1 years"
ExpiresByType application/vnd.ms-fontobject "access plus 1 years"
ExpiresByType application/svg+xml "access plus 1 years"
# Append "public" to header "Cache-Control"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
Source: https://httpd.apache.org/docs/current/mod/mod_expires.html