about summary refs log tree commit diff
path: root/web/homepage/nginx.nix
diff options
context:
space:
mode:
Diffstat (limited to 'web/homepage/nginx.nix')
-rw-r--r--web/homepage/nginx.nix4
1 files changed, 4 insertions, 0 deletions
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};