standardebooks / web

The source code for the Standard Ebooks website.

Home Page:https://standardebooks.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.avif files served with no Content-Type

bentley opened this issue · comments

These are the headers I see when viewing https://standardebooks.org/images/covers/f-scott-fitzgerald_the-great-gatsby-3ea4090f-cover.avif:

HTTP/1.1 200 OK
Date: Thu, 11 Mar 2021 05:47:48 GMT
Server: Apache
Strict-Transport-Security: max-age=15768000
Upgrade: h2,h2c
Connection: Upgrade, close
Last-Modified: Wed, 10 Feb 2021 23:33:53 GMT
Accept-Ranges: bytes
Content-Length: 5298
X-UA-Compatible: IE=edge
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
ETag: "e6d0-14b2-5bb03d60a53e0-gzip"
Content-Security-Policy: default-src 'self';

Without a Content-Type, it shows up as text in Chromium when viewed directly (with, e.g., “Open image in new tab”).

This should be fixed now!