Https下字體文件沒法加載的解決方案

一開始覺得是權限問題,可是更改後無效nginx

在nginx.conf文件中加入以下配置 而後重啓nginx便可生效,如需別的格式 自行添加code

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico|eot|otf|ttf|woff|woff2)$ {
    expires 30d;
    access_log off;
  }
相關文章
相關標籤/搜索