Viewing 1 replies (of 1 total)
  • Try adding this in your .htaccess at the very end:

    # Custom directives for woff2; remove them if/when W3TC supports it
    <IfModule mod_mime.c>
        AddType application/font-woff2 woff2
    </IfModule>
    <IfModule mod_expires.c>
        ExpiresByType application/font-woff2 A31536000
    </IfModule>
    <FilesMatch "\.(woff2|WOFF2|)$">
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public"
        </IfModule>
    </FilesMatch>
    # end custom directives

    This will make sure .woff2 files are served with the proper headers.

Viewing 1 replies (of 1 total)

The topic ‘Add Browser Cache support for WOFF2’ is closed to new replies.