Skip to content

Commit

Permalink
Simplify cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed Jul 1, 2024
1 parent 23c6f0b commit d6daf79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ server {
index index.html;
location / {
try_files $uri $uri/ =404;

expires 1m;
add_header Pragma public;
add_header Cache-Control "public";
add_header Cache-Control "public, max-age=60";
}

location ~* /(js|css|media)/.*\..*$ {
expires 1y;
add_header Cache-Control "public";
add_header Cache-Control "public, max-age=31536000";
}
}

0 comments on commit d6daf79

Please sign in to comment.