• Resolved chillybang

    (@chillybang)


    I can’t get a TTF file to be compressed. Not by brotli, neither by GZip. The content-type of this TTF file is application/font-sfnt, as shown in DevTools. It is

    I’ve tried to add this code to both htacess files, of LSCache and of WordPress (one by one, not simultanously) – but both didn’t work for me:

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/font-sfnt
    </IfModule>

    How can I activate compression for TTF file?

Viewing 1 replies (of 1 total)
  • Thread Starter chillybang

    (@chillybang)

    Got it.

    Added to htaccess

    <IfModule mod_mime.c>
    AddType x-font-ttf ttf
    AddType font/ttf ttf
    AddType font-sfnt ttf
    </IfModule>

    Brotli works.

    • This reply was modified 3 years, 2 months ago by chillybang.
Viewing 1 replies (of 1 total)
  • The topic ‘TTF file isn’t compressed’ is closed to new replies.