Skip to content

Commit

Permalink
Reduced expiration duration for static assets in prod nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
clpetersonucf committed Dec 11, 2024
1 parent 078e06c commit a0ebbf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/config/nginx/nginx-production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ http {

# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|js|css|json|obj)$ {
access_log off;
access_log off;
log_not_found off;
expires max;
expires 1w;
add_header Cache-Control "max-age=604800, public";
}

# deny direct access to any php files
Expand Down

0 comments on commit a0ebbf7

Please sign in to comment.