mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-07-09 21:43:06 -04:00
Add stylesheet to plain text files in .htaccess
It turns out that Firefox (version 140 at least) will happily use an HTTP Link header for a CSS stylesheet on a plain text file. It works a bit weirdly because it applies the stylesheet to the HTML conversion of the file, but that actually means that the existing bedstead.css works pretty well. This doesn't work on Chromium, but that's no worse than what we've already got.
This commit is contained in:
parent
2d27cef998
commit
f8b7e0a91f
@ -3,6 +3,7 @@ AddType application/xhtml+xml;charset=UTF-8 .xhtml
|
||||
AddType font/otf;outlines=CFF .otf
|
||||
<FilesMatch "^\p{Lu}+$">
|
||||
ForceType text/plain
|
||||
Header add Link "<bedstead.css>; rel=stylesheet type=\"text/css\""
|
||||
</FilesMatch>
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml text/css font/otf \
|
||||
application/javascript application/wasm \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user