diff options
-rw-r--r-- | nginx.conf (renamed from nginx/nginx.conf) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx.conf index 822dd29..4b8416e 100644 --- a/nginx/nginx.conf +++ b/nginx.conf @@ -6,6 +6,12 @@ server { root /usr/share/nginx/html; index index.html index.htm; + location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf|webp)$ { + expires 30d; + access_log off; + add_header Cache-Control "public"; + } + location / { try_files $uri $uri/ /index.html; } |