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

js css缓存

parent a4af3915
......@@ -89,7 +89,7 @@ cat <<EOF >/etc/nginx/conf.d/crm-admin.conf
server {
listen $OLD_CRM_ADMIN_HTTP_PORT;
server_name localhost;
root /app/www/crm-admin/public;
root /app/www/crm-admin;
index index.php index.html;
location ^~ /workflow/ {
proxy_pass http://$HOST:$GALAXY_FLOW_MICROS_API_HTTP_PORT;
......@@ -126,6 +126,12 @@ server {
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
try_files \$uri \$uri/ /index.html;
}
location ~ .*\.(js|css)?$
{
root /app/www/crm-admin;
expires 7d;
add_header Cache-Control "public";
}
}
EOF
......@@ -410,12 +416,6 @@ server {
try_files \$uri \$uri/ /index.html;
}
location ~ .*\.(js|css)?$
{
root /app/www/crm;
expires 7d;
add_header Cache-Control "public";
}
}
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