Woff2 compression?
-
Question, is WOFF2 supposed to be compressed by .htaccess via this plugin?
I ran a site speed test through tools.pingdom.com and it complained that “The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:”
The file it was complaining about was a custom font in my css that was .WOFF2.
In the .htaccess, I changed this line
<FilesMatch “\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|js|woff|ttf|svg|eot)(\.gz)?$”>
to
<FilesMatch “\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$”>
and then re ran the speed test, and pingdom stopped complaining.
The topic ‘Woff2 compression?’ is closed to new replies.