Short answer: Open cPanel MIME Types, specify MIME type descriptor and file extension (e.g. .webp), and click 'Add' to ensure browsers parse specialized file formats correctly.
Register custom media types and emerging file extensions to ensure web servers deliver correct Content-Type headers to browsers.
Quick reference
| Tool Location | cPanel > Advanced > MIME Types |
|---|---|
| Common Use Cases | Web fonts (font/woff2), AVIF images (image/avif), WebAssembly (application/wasm) |
| Storage Backend | Directive entry inside .htaccess |
| Primary Impact | Eliminates improper browser file prompt downloads |
Steps
- Access MIME Types: In the Advanced group of cPanel, click MIME Types.
- Enter Type Definition:
- In the MIME Type field, provide the standard IANA media type (e.g.
font/woff2). - In the Extension(s) field, enter the extension without leading dots (e.g.
woff2).
- In the MIME Type field, provide the standard IANA media type (e.g.
- Save Entry: Click Add to commit the directive.
Troubleshooting and tips
- Client-Side Caching: Clear local browser cache and intermediate proxy caches to verify updated HTTP Content-Type headers.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket