Favicon.kz
Favicon MIME types: SVG, ICO, PNG — correct server setup | Favicon.kz

Favicon MIME types: why they matter

If your server returns the wrong Content-Type, some browsers or crawlers may ignore the favicon or cache it incorrectly.

Recommended types

  • SVG: image/svg+xml
  • ICO: image/x-icon (or image/vnd.microsoft.icon)
  • PNG: image/png

How to verify quickly

  1. Open DevTools → Network and check Content-Type for favicon requests.
  2. Or use curl to inspect response headers.
Common issue
Some servers serve SVG as text/plain. Fixing this often resolves favicon problems.

FAQ

Is text/plain for SVG a problem?
Yes. Some environments can ignore it. Prefer image/svg+xml.
Which ICO MIME is best?
image/x-icon is the most widely compatible.