Nginx woff2 as static file

This commit is contained in:
ErickSkrauch 2016-10-11 11:28:10 +03:00
parent d4285f9fd1
commit f76221c41c

View File

@ -56,7 +56,7 @@ server {
}
# Раздача статики для frontend с указанием max-кэша. Сброс будет по #hash после ребилда webpackом
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|json|css|zip|rar|eot|ttf|woff|ico)$ {
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|json|css|zip|rar|eot|ttf|woff|woff2|ico)$ {
root $frontend_path;
expires max;
etag off;