Mime Types
I had a bit of a weird issue with the Happy Christmas post. I’d uploaded the images as AVIF, because they were much smaller than PNG, and although the image embedded in the web page was displaying correctly, clicking through was resulting in the browser downloading the image, then displaying it, which is very odd.
It took me a while but I realised it’s probably a missing mime-type for avif in the web server. Sure enough, it turns out the defaults for OpenBSD’s httpd are pretty limited. My fix looks like:
types {
include "/usr/share/misc/mime.types"
image/avif avif
image/webp webp
}
and now everything is working perfectly.