MIME Type Validation
Detects Content-Type header mismatches with file extensions
Detects Content-Type header mismatches with file extensions
| Rule ID | content/mime-type |
| Category | Content |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Solution
Incorrect MIME types break resource loading and waste crawl budget. Common issues include .js files served as text/html, images without image/* type, CSS without text/css. Fix server configuration to serve correct Content-Type headers. For Apache use .htaccess, for nginx use mime.types config.
Enable / Disable
Disable this rule
[rules]
disable = ["content/mime-type"]
Disable all Content rules
[rules]
disable = ["content/*"]
Enable only this rule
[rules]
enable = ["content/mime-type"]
disable = ["*"]