Commit c88d893

Daniel Axtens <dja@axtens.net>
2026-10-10 02:18:25
never stop caching
1 parent b9a7c1b
Changed files (1)
nginx/nginx.conf
@@ -35,6 +35,8 @@ http {
     map $uri $cachecontrol {
         default "public, s-maxage=31536000, stale-if-error=3600";
         "~^/style\.min\..*\.css$" "public, max-age=31536000, s-maxage=31536000, stale-if-error=3600, immutable";
+        # hugo processed images have a hash
+        "~^.*_hu.*\.(jpg|jpeg|png|gif|webp|avif)$" "public, max-age=31536000, s-maxage=31536000, stale-if-error=3600, immutable";
     }
 
     server {