1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

site: cache fonts

This commit is contained in:
TheGeneralist 2026-01-25 16:12:47 +01:00
parent 41d3da9bb3
commit 7a9c496f02
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -61,11 +61,16 @@ in
extraConfig = ''
absolute_redirect off;
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico|woff2?)$ {
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico)$ {
expires 1d;
add_header Cache-Control "public";
}
location ~* \.(ttf|woff2?)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
error_page 404 /404.html;
'';
};