Set longer cache duration for fonts

Since they are versioned, we can be a bit more liberal with the stated
cache duration.
This commit is contained in:
Moritz 'e1mo' Fromm 2023-04-13 14:56:49 +02:00 committed by Moritz
parent 681da3fd18
commit f2ebb3fe5c

View file

@ -41,6 +41,10 @@ in {
serverAliases = [ "www.${baseDomain}" ];
root = webroot;
locations = {
# A ?version= is appeneded to the font files, so we can be quite liberal
"/theme/fonts/open-sans/fonts/".extraConfig = ''
expires 1M;
'';
"/".extraConfig = ''
log_not_found off;
error_page 404 /404.html;