diff --git a/api/static-site.ts b/api/static-site.ts index 5719e60..beb274c 100644 --- a/api/static-site.ts +++ b/api/static-site.ts @@ -266,7 +266,12 @@ const NGINX_CONF = `server { # the filename is a hash of the original, the framing, the slot and the width, so the bytes at a given # URL can never legitimately change. A re-crop is a different name, and the HTML that carries it is # revalidated every visit. This is the difference from /derived/ above, which is rewritten in place. - location ^~ /images/ { + # + # `/crops/`, and it was `/images/` until 2026-08-31 — a name taken from the URL rather than from what + # is behind it, beside two other directories equally full of images. A site published before the + # rename has `/images/` in its HTML and no longer has the files; the fix is a publish, which rewrites + # every one of these URLs anyway. + location ^~ /crops/ { expires 1y; add_header Cache-Control "public, immutable"; }