Commit 2b06c66e by zhangxingmin

push

parent a0a85ff7
......@@ -13,6 +13,9 @@ server {
# 静态资源处理 - 必须放在最前面
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|map)$ {
# ✅ 关键:添加 try_files 指令
try_files $uri =404;
# 确保静态资源有正确的过期时间和缓存头
expires 1y;
add_header Cache-Control "public, immutable";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment