Add aggressive caching for /static directory

This commit is contained in:
Willian Mitsuda 2021-07-14 18:17:38 -03:00
parent 54bc06a7ad
commit 3f95d01126
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ server {
#access_log /var/log/nginx/host.access.log main; #access_log /var/log/nginx/host.access.log main;
location /static {
root /usr/share/nginx/html;
expires max;
}
location /signatures { location /signatures {
root /usr/share/nginx/html; root /usr/share/nginx/html;
expires 30d; expires 30d;