about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-09T21·05+0000
committerVincent Ambo <tazjin@google.com>2020-02-09T21·05+0000
commit386692d39d1dd9e437940f384f9abe33d066579e (patch)
tree783413d837452036e6adf0ee0e615b2db182e2b6
parent74a78de081a57c2196c3231f68cd1f9aeffb627b (diff)
chore(web/homepage): Configure caching for fonts & images r/516
-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};