File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ server {
34
34
include fastcgi_params;
35
35
}
36
36
37
+ # Set the cache-control headers on assets to cache for 5 days
37
38
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
38
39
expires 5d;
39
40
}
Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ http {
33
33
fastcgi_hide_header X-Powered-By;
34
34
server_tokens off ;
35
35
36
+ # Enable gzip compression by default
36
37
gzip on ;
37
38
gzip_proxied any;
38
39
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
39
40
gzip_vary on ;
40
41
gzip_disable "msie6" ;
41
42
42
- # Include other server configs
43
+ # Include server configs
43
44
include /etc/nginx/conf.d/*.conf;
44
45
}
You can’t perform that action at this time.
0 commit comments