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:
parent
681da3fd18
commit
f2ebb3fe5c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue