I have the following in my global .htaccess file on my nginx server:
# COMPRESS FILES
<IfModule mod_deflate.c>
[...]
AddOutputFilterByType DEFLATE application/font-woff2
AddOutputFilterByType DEFLATE font/woff2
[...]
</IfModule>
I understand there was some controversy a while back over what MIME
Type should represent .woff2
files, but I was hoping that one of these lines:
application/font-woff2
font/woff2
would work.
Apparently, neither does.
Further Info:
- I don't have any deeper
.htaccess
files overriding the global.htaccess
file - My server version is nginx/1.21.6 (on this basis, I've never really understood how
.htaccess
directives work at all, but I use a good handful of modules and all the directives work)
Question:
Am I using the wrong MIME
Type?
Or is the issue likely to be nginx
related?
(Or something else which hasn't crossed my mind yet...) ?