diff --git a/nginx.conf b/nginx.conf index c040df02..93d0436c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -41,7 +41,7 @@ http { try_files $uri $uri/ /index.html; } - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { + location ~* \.(png|jpg|jpeg|gif|ico|svg)$ { # 静态资源 expires 1y; add_header Cache-Control "public, immutable";