1 mimeタイプにsvgを確認
cat /etc/nginx/mime.types
————————————–
image/svg+xml svg svgz;
————————————–
2 nginx.confを開く
vim /etc/nginx/nginx.conf
————————————–
##
# Gzip Settings
##
gzip on;
gzip_disable “msie6”;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
#compression level
gzip_comp_level 6;
gzip_min_length 1000;
gzip_buffers 16 8k;
gzip_http_version 1.1;
# files to gzip
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
————————————–
3 nginx -t
service nginx reload