Commit a0b653d4 authored by Kunkka王辉's avatar Kunkka王辉 😲

js css缓存

parent c690f446
...@@ -415,7 +415,12 @@ server { ...@@ -415,7 +415,12 @@ server {
# add_header Access-Control-Allow-Methods "GET, POST, OPTIONS"; # add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
try_files \$uri \$uri/ /index.html; try_files \$uri \$uri/ /index.html;
} }
location ~ .*\.(js|css)?$
{
root /app/www/crm;
expires 7d;
add_header Cache-Control "public";
}
} }
EOF EOF
......
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