text/yaml
YAML is common in infrastructure, CI, and content configs where humans need to review nested settings quickly.
How teams usually encounter it
This page maps the media type to the file extensions and delivery behaviors developers usually care about: browser parsing, upload validation, cache correctness, and asset handling.
Compression signal
text/yaml often benefits from gzip or Brotli in HTTP delivery because the payload is text-like or structurally repetitive.
Server config snippets
Use these when a server is missing the right extension-to-MIME mapping or you want the expected header to survive a proxy, CDN, or custom asset bucket setup.
types {
text/yaml yaml yml;
}AddType text/yaml .yaml .ymlSignature note
This MIME type does not include a magic-byte sample here because the signature is either format-dependent or not reliable enough to present as a debugging shortcut.
Operational shortcut
If a browser downloads this asset instead of rendering it correctly, check the response header first, then verify the extension mapping on your origin and edge cache. .yaml is the fastest sanity check for teammates reviewing the file outside the app.
Related text types
text/html
HTML responses power document rendering on the web, so getting the MIME type right affects browser parsing, caching, and SEO-friendly delivery.
.htm .htmltext/plain
Plain text is the safe fallback for logs, notes, and lightweight config fragments when you need maximum readability and compatibility.
.conf .ini .logtext/csv
CSV is the simplest handoff for tabular data, making it a staple for imports, exports, and analyst-friendly workflows.
.csvtext/markdown
Markdown keeps content portable between docs, repos, and CMS workflows by pairing readable plain text with lightweight formatting.
.markdown .mdtext/tab-separated-values
TSV moves structured data without comma-escaping headaches, which helps when datasets contain many free-form text fields.
.tsvtext/vtt
WebVTT delivers captions and subtitles to browsers and video players, keeping media accessible and searchable.
.vtt