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:
parent
41d3da9bb3
commit
7a9c496f02
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue