From: Ben Harris Date: Sat, 18 Oct 2025 23:07:51 +0000 (+0100) Subject: Use text/plain for all-caps filenames in .htaccess X-Git-Tag: bedstead-3.261~71 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=a0a11e9e34040b66eb993325302ca8edfb50511a;p=bedstead.git Use text/plain for all-caps filenames in .htaccess There are various text files in the Bedstead sources (and hence on the Web site) that have conventional names in all caps, like NEWS. These should be served as text/plain. That can be achieved in Apache using a block and ForceType. --- diff --git a/.htaccess b/.htaccess index dbc5164..fa1c09f 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,8 @@ DirectoryIndex index.xhtml AddType application/xhtml+xml;charset=UTF-8 .xhtml AddType font/otf;outlines=CFF .otf + + ForceType text/plain + AddOutputFilterByType DEFLATE application/xhtml+xml text/css font/otf \ text/plain text/x-csrc application/postscript