Lessons

Matching the Mime Type to the file

For each file on the server, the HTTP Content-Type header specifies the mime type file. Even the web page itself is of the text/html type. Each image format, CSS, JavaScript, XML files - any file has its own mime type.

By default, web servers specify the mime type based on the file extension. For png this is image/png, for pdf - application/pdf, etc. But sometimes, due to incorrect server settings or specific usage scenarios, the mime type value may be incorrect.

Errors in mime type rarely lead to serious problems, since browsers are able to automatically determine the file format by its contents. But if an erroneous mime type still causes a problem, then it is very specific and difficult to reproduce. Programmers will spend a lot of time before they realize that the problem is an incorrect mime type. Therefore, configure these values on your server.

PRO subscription for working with the service

Promo
Checking 50 pages in the tool "Checking the page"
190 ₽
The subscription is activated for 10 days and is linked to a specific site.
PRO subscription
3,500 pages per week in tools "Checking the page" and "Full site scan".
1 580 ₽
The subscription is activated for 30 days and you can scan any site.
Wallet
Additional pages that are credited to a separate balance. For checking large sites.
200 ₽
Number of pages
An active PRO subscription is required.
We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree