更新 nginx.common.conf

This commit is contained in:
jxxghp
2025-08-10 21:32:53 +08:00
committed by GitHub
parent e03471159a
commit 1efb9af7ab

View File

@@ -15,13 +15,6 @@ location ~* \.(png|jpg|jpeg|gif|ico|svg)$ {
add_header Cache-Control "public, immutable";
}
# JS和CSS静态资源缓存
location ~* \.(js|css)$ {
expires 30d;
add_header Cache-Control "public";
add_header Vary Accept-Encoding;
}
# assets目录
location /assets {
expires 1y;