chiark / gitweb /
Add more compressible types in .htaccess
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 18 Oct 2025 22:45:47 +0000 (23:45 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 18 Oct 2025 22:45:47 +0000 (23:45 +0100)
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.

.htaccess

index 48d2016328561e647decdd59ceb49bd2fe1f140f..dbc5164f090154a6dcf92ca70675f76b55242598 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,4 +1,5 @@
 DirectoryIndex index.xhtml
 AddType application/xhtml+xml;charset=UTF-8 .xhtml
 AddType font/otf;outlines=CFF .otf
-AddOutputFilterByType DEFLATE application/xhtml+xml font/otf
+AddOutputFilterByType DEFLATE application/xhtml+xml text/css font/otf \
+ text/plain text/x-csrc application/postscript