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(+) (limited to 'web') diff --git a/web/homepage/nginx.nix b/web/homepage/nginx.nix index 100c0cc9ee3a..89804574477d 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