From 386692d39d1dd9e437940f384f9abe33d066579e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 9 Feb 2020 21:05:03 +0000 Subject: chore(web/homepage): Configure caching for fonts & images --- web/homepage/nginx.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/homepage/nginx.nix b/web/homepage/nginx.nix index 100c0cc9ee..8980457447 100644 --- a/web/homepage/nginx.nix +++ b/web/homepage/nginx.nix @@ -49,6 +49,10 @@ let ${oldRedirects} + location ~* \.(webp|woff2)$ { + add_header Cache-Control "public, max-age=31536000"; + } + location /blog { alias ${blog.rendered}; -- cgit 1.4.1