Artwork that can never be shown is downloaded again every hour #448
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/api/artremembers a failed image for an hour only (RETRYin crates/ipx/src/art.rs), whatever the failure. Images that will never pass are fetched again on the next view after that:Content-Lengthis not looked at first: roughly 3 GB downloaded for nothing.application/octet-stream:image_kindsniffs JPEG, PNG, GIF and WebP only, so they fail withnot an image, and the reader shows nothing where Safari could have shown them.425
GET /api/art -> 502in the same days. Found by the prod check.Refusing on
Content-Lengthbefore reading, and remembering a too-large or 4xx answer for longer than an hour, would stop most of it.Fixed in
0222c0b, deployed to ipx 2026-11-14 04:06 UTC. An image whose Content-Length is over 20 MB is refused before its body is read; a failure that will hold tomorrow (a 4xx other than 408/429, too large, not an image) is remembered for a day instead of an hour; timeouts, 5xx and dropped connections still retry after an hour. JPEG XL sent as octet-stream (shkspr.mobi) is recognised by its signature and served as image/jxl. Tests: an_artwork_failure_lasts_when_the_publisher_or_ipx_refuses_it, and the image_kind and art failure tests.