Content-hash static images so they can be changed in place
Logos and other images in public/ are copied to the CDN unhashed (e.g. logos/mach.svg), with a one-year immutable cache. The post-deploy ce builds check_hashes step rightly refuses any build where a CDN filename's content has changed. That means editing an existing image in place breaks every build from that commit on, until the file is renamed.
That happened with #9200, which replaced logos/mach.svg after #9132 had already published it. gh-19414 failed post_deploy_check with logos/mach.svg: expected hash ... != ....
Renaming works around it, but it's easy to miss in review, and the failure only shows up after merge. Serving these images with a content hash in the filename (as the JS/CSS bundles already are) would let them change freely. getStaticImage in static/utils.ts builds the URLs from the bare filename today, so it would need to resolve hashed names.
Generated with Claude Code
Source: compiler-explorer/compiler-explorer