Media type / application
application/vnd.apple.mpegurl
HLS playlists — the m3u8 index of media segments used by Apple devices and most web players.
Served inline: Browsers have no renderer for this, so it downloads even without a Content-Disposition header. That makes it the quiet default for anything you do not want opened in place.
Browser behaviour
Downloads
Charset
charset required
Compression
Compress in transit
Send it like this
Content-Type: application/vnd.apple.mpegurl; charset=utf-8Send `; charset=utf-8`. Without it the receiver falls back to its own default — for some text types that default is us-ascii, and any non-ASCII character then renders wrong.
Handling verdict
Browsers have no renderer for this, so it downloads even without a Content-Disposition header. That makes it the quiet default for anything you do not want opened in place.
Send `; charset=utf-8`. Without it the receiver falls back to its own default — for some text types that default is us-ascii, and any non-ASCII character then renders wrong.
The payload is text-like or otherwise repetitive, so gzip or Brotli removes real bytes. Enable it at the server or CDN.
A `vnd.` subtype belongs to a specific product or organisation. It is registered, but its meaning is defined by that vendor rather than by a standards body.
Anatomy of the name
RFC 6838Top-level type
application
Application
Subtype
vnd.apple.mpegurl
Registered in the vendor tree.
Structured syntax
none
No suffix, so the payload format is defined entirely by the subtype itself.
Parameters
charset
Beyond the charset rule above, this type defines no parameters of its own.
What trips people up
1 note- Playlists are refetched constantly during playback, so cache them briefly rather than not at all.
Response headers
Content-Type: application/vnd.apple.mpegurl; charset=utf-8
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="example.m3u8"
Vary: Accept-Encodingnosniff stops the browser second-guessing the type you declared, which is what makes the rest of this reliable. Content-Disposition: attachment names the saved file and removes any doubt about rendering.
Server configuration
extension mappingnginx
types {
application/vnd.apple.mpegurl m3u8;
}Apache
AddType application/vnd.apple.mpegurl .m3u8
AddCharset UTF-8 .m3u8Caddy
@type path *.m3u8
header @type Content-Type "application/vnd.apple.mpegurl; charset=utf-8"Extensions and other spellings
declaredFile extensions
Also written as
These reach the same handler in practice. Accept them on input; send application/vnd.apple.mpegurl on output.
File signature
No fixed signature — this format has no reliable magic number, so identify it by parsing rather than by the first few bytes.