Skip to content

Commit 7456490

Browse files
committed
Update nginx.conf.template
1 parent 36c479a commit 7456490

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nginx/templates/nginx.conf.template

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,22 @@ server {
9090
default_type image/svg+xml;
9191
}
9292
location = /favicon.ico {
93-
log_not_found off;
93+
log_not_found off;
94+
access_log off;
9495
}
9596
location = /robots.txt {
9697
allow all;
97-
log_not_found off;
98+
log_not_found off;
99+
access_log off;
98100
}
99101
#
100102
# caching of files
101103
location ~* \.(ico|pdf|flv)$ {
102104
expires 1y;
103105
}
104-
105106
location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
106-
expires 14d;
107+
expires max;
108+
log_not_found off;
107109
}
108110
#
109111
access_log off;

0 commit comments

Comments
 (0)