chiark / gitweb /
Enable "deflate" filter for XHTML and fonts in .htaccess
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 18 Oct 2025 16:31:40 +0000 (17:31 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 18 Oct 2025 16:31:40 +0000 (17:31 +0100)
The configuration on chiark already compresses most HTML content
types, and OTF fonts (especially Bedstead) are very compressible.

.htaccess

index 22a6186d5f586b6742ec1c8c7c9521bc76f2958b..48d2016328561e647decdd59ceb49bd2fe1f140f 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,4 @@
 DirectoryIndex index.xhtml
 AddType application/xhtml+xml;charset=UTF-8 .xhtml
 AddType font/otf;outlines=CFF .otf
+AddOutputFilterByType DEFLATE application/xhtml+xml font/otf