How can I set Cache TTL for woff2 font files with htaccess
My WordPress site htaccess file currently has these entries to set cache expiry for woff2 font files:
<IfModule mod_expires.c> ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/font-woff2 "access plus 1 year" ExpiresByType application/x-font-woff2 "access plus 1 year" </IfModule>
But I’m still getting suggestions to set cache TTL for these files in speed testing tools (e.g.
https://example.com/fonts/fontawesome.woff2). How can I solve this?