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 {
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 }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments