perf: async Google Fonts, extend CSS/JS cache to 1 week

This commit is contained in:
Lago
2026-05-10 00:01:22 +02:00
parent db4001aaa5
commit 54d9cdcdc9
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -20,8 +20,10 @@ server {
add_header Cache-Control "public";
try_files $uri =404;
}
# CSS/JS: 1-week cache; config.js is excluded by its exact-match rule above.
location ~* \.(?:css|js)$ {
add_header Cache-Control "no-cache";
expires 7d;
add_header Cache-Control "public, max-age=604800";
try_files $uri =404;
}