MIME types tell browsers how to handle file downloads and media formats. Add custom MIME types when serving uncommon file extensions.
Add a MIME type
- Go to Advanced → MIME Types.
- Enter the MIME type (for example
application/json) and the file extension (for example.jsonwithout the leading dot in some versions). - Click Add.
Common examples
.woff2— web fonts for modern browsers..mjs— JavaScript modules..webp— WebP images (often already configured).
Incorrect MIME types can cause browsers to download files instead of displaying them. Remove custom entries if you experience unexpected behavior after adding them.