about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 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};