Skip to content

Commit 31e09d9

Browse files
committed
Describe a few things better with comments
1 parent bf2732f commit 31e09d9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/conf.d/default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ server {
3434
include fastcgi_params;
3535
}
3636

37+
# Set the cache-control headers on assets to cache for 5 days
3738
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
3839
expires 5d;
3940
}

config/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ http {
3333
fastcgi_hide_header X-Powered-By;
3434
server_tokens off;
3535

36+
# Enable gzip compression by default
3637
gzip on;
3738
gzip_proxied any;
3839
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
3940
gzip_vary on;
4041
gzip_disable "msie6";
4142

42-
# Include other server configs
43+
# Include server configs
4344
include /etc/nginx/conf.d/*.conf;
4445
}

0 commit comments

Comments
 (0)