9 Commits

Author SHA1 Message Date
Ben Harris
1edf533277 Set a content security policy in .htaccess
My Web site disables JavaScript by default, so we need to override
that if the Web editor is going to work.
2026-01-13 21:42:18 +00:00
Ben Harris
a0a11e9e34 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 <FilesMatch> block and ForceType.
2025-10-19 00:07:51 +01:00
Ben Harris
245ab8e819 Add more compressible types in .htaccess
It looks like by AddOutputFilterByType directive somehow overrides the
defaults, and also there are a few more types that could usefully be
compressd.  So now it lists all the compressible file types in the
directory.
2025-10-18 23:45:47 +01:00
Ben Harris
81fdc813c9 Enable "deflate" filter for XHTML and fonts in .htaccess
The configuration on chiark already compresses most HTML content
types, and OTF fonts (especially Bedstead) are very compressible.
2025-10-18 17:31:40 +01:00
Ben Harris
b51e2a479d Remove .sfd from .htaccess file
We don't serve and SFD files any more.
2025-10-18 17:27:23 +01:00
Ben Harris
7a136ee50a Update media type for OpenType fonts.
application/font-sfnt has been deprecated in favour of, among others, 
font/otf.
2018-04-22 20:12:07 +01:00
Ben Harris
2be91c231f Make the Bedstead Web page unambiguously XHTML.
It was syntactically XHTML already, but various things suggested that it
might be HTML instead.  Now it has a proper content-type in Apache, a
filename that Firefox can understand when reading from a local file, and
for good measure a <meta> tag.  That should keep everyone except possibly
Lynx users happy.
2016-11-08 00:59:28 +00:00
Ben Harris
f1bcd48872 Add a Content-type for SFD files. 2016-11-05 23:57:19 +00:00
Ben Harris
81950ac175 Add MIME type for .otf files. 2014-08-12 22:02:34 +01:00