We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf2732f commit 31e09d9Copy full SHA for 31e09d9
2 files changed
config/conf.d/default.conf
@@ -34,6 +34,7 @@ server {
34
include fastcgi_params;
35
}
36
37
+ # Set the cache-control headers on assets to cache for 5 days
38
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
39
expires 5d;
40
config/nginx.conf
@@ -33,12 +33,13 @@ http {
33
fastcgi_hide_header X-Powered-By;
server_tokens off;
+ # Enable gzip compression by default
gzip on;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
gzip_vary on;
41
gzip_disable "msie6";
42
- # Include other server configs
43
+ # Include server configs
44
include /etc/nginx/conf.d/*.conf;
45
0 commit comments