Skip to content

Commit

Permalink
Describe a few things better with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Jan 7, 2023
1 parent bf2732f commit 31e09d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
include fastcgi_params;
}

# Set the cache-control headers on assets to cache for 5 days
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
expires 5d;
}
Expand Down
3 changes: 2 additions & 1 deletion config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ http {
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;
gzip_disable "msie6";

# Include other server configs
# Include server configs
include /etc/nginx/conf.d/*.conf;
}

0 comments on commit 31e09d9

Please sign in to comment.