Welcome to WebmasterWorld Guest from 18.208.159.25

Forum Moderators: Ocean10000 & phranque

Cache Rule For Woff2 Font?

     
5:46 pm on Sep 7, 2019 (gmt 0)

Junior Member

Top Contributors Of The Month

joined:Dec 2, 2017
posts: 63
votes: 1


I recently added cache control rules to my .htaccess file. Everything works except the rule for my woff2 font.

PSI lists “none” for cache TTL in the ”serve static assets with an efficient cache policy” dropdown.

This is my rule:

ExpiresByType application/x-font-woff2 “access 1 month”

How can I fix this so my font will cache? Thanks!
6:19 pm on Sept 7, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4518
votes: 350


Are you hosting the fonts you use? If they are not locally hosted you will see errors on cache settings. Google fonts are frequently (api) requested in the headers of your pages. Google offers instructions on hosting and cache settings for their fonts.