docs: added expire static files nginx directive for better caching
This commit is contained in:
parent
45de0aae6c
commit
e926f77246
2 changed files with 2 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ Use the following example to configure Nginx as a your web server.
|
|||
# gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
# gzip_vary on;
|
||||
# gzip_disable "msie6";
|
||||
# expires 60d;
|
||||
# alias /path/to/.rccontrol/community-1/static;
|
||||
# alias /path/to/.rccontrol/enterprise-1/static;
|
||||
# }
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ persistent sessions across nodes. Please generate other one then in this example
|
|||
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6";
|
||||
expires 60d;
|
||||
#alias /home/rcdev/.rccontrol/community-1/static;
|
||||
alias /home/rcdev/.rccontrol/enterprise-1/static;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue