This commit is contained in:
Nils 2025-03-19 10:42:47 +01:00
parent ae1427f295
commit a4dc6cfa80

View File

@ -1,51 +1,12 @@
DirectoryIndex index.php index.html index.htm index.pdf
# Ensure .typst files are treated as plain text with UTF-8 encoding
AddType text/plain .typst
AddCharset utf-8 .typst
AddDefaultCharset utf-8
# MIME TYPES
<IfModule mod_mime.c>
# DEFAULTS
DefaultLanguage de
AddLanguage de-DE .html .css .js
AddCharset utf-8 .html .css .js .xml .json .rss .atom .typst .md
# JAVASCRIPT
AddType application/javascript js jsonp
AddType application/json json
# FONTS
AddType font/opentype otf
AddType application/font-woff woff
AddType application/x-font-woff woff
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttc ttf
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# AUDIO
AddType audio/mp4 m4a f4a f4b
AddType audio/ogg oga ogg
# VIDEO
AddType video/mp4 mp4 m4v f4v f4p
AddType video/ogg ogv
AddType video/webm webm
AddType video/x-flv flv
# OTHERS
AddType application/octet-stream safariextz
AddType application/x-chrome-extension crx
AddType application/x-opera-extension oex
AddType application/x-shockwave-flash swf
AddType application/x-web-app-manifest+json webapp
AddType application/x-xpinstall xpi
AddType application/xml atom rdf rss xml
AddType application/vnd.openxmlformats .docx .pptx .xlsx .xltx . xltm .dotx .potx .ppsx
AddType text/cache-manifest appcache manifest
AddType text/vtt vtt
AddType text/x-component htc
AddType text/x-vcard vcf
AddType image/webp webp
AddType image/x-icon ico
</IfModule>
<FilesMatch "\.typst$">
ForceType text/plain
Header set Content-Type "text/plain; charset=UTF-8"
Header set Content-Disposition "inline"
</FilesMatch>