Skip to content

Commit

Permalink
Merge pull request #1316 from edenia/chore/change-max-age-for-css-and-js
Browse files Browse the repository at this point in the history
chore(webapp): reduce the expiration of css and js files to seven days
  • Loading branch information
xavier506 authored Sep 27, 2023
2 parents f7db0dc + d557d66 commit 2549ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ server {
listen 80;

location ~* ^/static/(css|js)/$ {
add_header Cache-Control "public, max-age=31536000";
expires 365d;
add_header Cache-Control "public, max-age=604800";
expires 7d;
}

location ~* ^/static/media/$ {
Expand Down

0 comments on commit 2549ad6

Please sign in to comment.