Open sbarber2 opened 1 year ago
Hmm, this problem doesn't happen when viewing the site locally with pyserver.py, but it does happen on the live site browsing to https://planttracer.com
Some notes to guide further investigation:
Browsers ignore the extension; they only consider the Mime-Type set in the HTTP header. We aren't setting the Mime-Type in the header and not in a meta tag. However, the document itself begins:
(base) webapp % curl --dump-header /tmp/head https://planttracer.com/plantliteracy | head (audit-page)webapp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8212 100 8212 0 0 102k 0 --:--:-- --:--:-- --:--:-- 104k
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Plant Literacy
</title>
Mime type inference is apparently called "MIME Sniffing" and is discussed here: https://security.stackexchange.com/questions/256357/is-mime-sniffing-still-something-to-protect-against-with-modern-browsers-with-x
MacOS Safari 16.5.1 renders the mobile site, should render desktop site.
This doesn't happen, for example, on MacOS Chrome 117.