Media type / model
model/gltf+json
glTF scenes in JSON form, with geometry and textures referenced as separate files.
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 ignored
Compression
Compress in transit
Send it like this
Content-Type: model/gltf+jsonThe format defines its own encoding, so no charset parameter is registered for this type. Sending one is harmless, but receivers are required to ignore it — it is not doing what people think it does.
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.
The format defines its own encoding, so no charset parameter is registered for this type. Sending one is harmless, but receivers are required to ignore it — it is not doing what people think it does.
The payload is text-like or otherwise repetitive, so gzip or Brotli removes real bytes. Enable it at the server or CDN.
Registered with IANA through a public review process, so the name is stable and every implementation can rely on it meaning the same thing.
Anatomy of the name
RFC 6838Top-level type
model
3D model
Subtype
gltf+json
Registered in the standards tree.
Structured syntax
+json
Any client that can parse JSON can read the payload, even without understanding this specific type.
Parameters
none
Beyond the charset rule above, this type defines no parameters of its own.
Response headers
Content-Type: model/gltf+json
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="example.gltf"
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 {
model/gltf+json gltf;
}Apache
AddType model/gltf+json .gltfCaddy
@type path *.gltf
header @type Content-Type "model/gltf+json"Extensions and other spellings
declaredFile extensions
File signature
No fixed signature — this format has no reliable magic number, so identify it by parsing rather than by the first few bytes.