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"

But I’m still getting suggestions to set cache TTL for these files in speed testing tools (e.g. How can I solve this?

akarim 8 months 2020-12-11T04:10:35-05:00 0 Answers 12 views 0

Leave an answer