nginx 添加 Content-Type 启用 Cloudflare 压缩

小弟使用的是宝塔, 找到宝塔的 nginx 配置文件路径如下:

/www/server/nginx/conf

修改:

mime.types

这个文件, 添加

    application/x-font-woff               woff;
    application/x-font-opentype           otf;
    application/x-font-ttf                ttf;
Share

小 虾

哦也,我是小虾

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.