Skip to main content
Detects Content-Type header mismatches with file extensions
Rule IDcontent/mime-type
CategoryContent
ScopePer-page
Severitywarning
Weight5/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

squirrel.toml
[rules]
disable = ["content/mime-type"]

Disable all Content rules

squirrel.toml
[rules]
disable = ["content/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["content/mime-type"]
disable = ["*"]