You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Documentation] Document the official MIME type for .gjs files #21133
I’m working on improving MIME type support for modern web framework source files across tooling, servers, and content-type databases.
Currently, there does not appear to be an officially documented MIME type for .gjs files.
Some tools/frameworks use conventions such as text/x-<framework>, but there is no authoritative reference from the Ember project itself.
This create ambiguity for other projects to rely on a consistent mapping.
Having an official statement would help:
MIME databases include the mapping
web servers and CDNs configure correct content types
editors and language servers align
reduce ecosystem fragmentation
Would the Ember project be open to document an official recommendation for the MIME type of .gjs files?
This does not necessarily require IANA registration though.
A short note in the docs would already provide a reliable reference for downstream projects I think.
If another MIME type from text/x-ember (like text/plain, text/html, text/html+ember, ...) is preferred, documenting that choice would be equally helpful.
ember, the framework, doesn't have a single file type, and gjs/gts are not necessarily ember specific, ember is the only consumer of those filetypes at the moment
because of this, and because there is already a widely used:
ts is not official, but some searches reveal some variants of text/(.+)?typescript
so, I think any of the following could be good options -- idk if we need to necisarily choose unless we want proper registration? (tho, you mention it's not required) -- what project are you working on? @MichaelDeBoey
anything else? really anything could be used, I suppose. The x convention is less familiar to me than vnd tho -- but I admit, I don't know the history behind either prefix
Activity
NullVoxPopuli commentedon Mar 2, 2026
hello! this does sound interesting, and I think would be appreciated.
some considerations:
because of this, and because there is already a widely used:
text/javascript(and a dozen+ more non-standard mimes)text/(.+)?typescriptso, I think any of the following could be good options -- idk if we need to necisarily choose unless we want proper registration? (tho, you mention it's not required) -- what project are you working on? @MichaelDeBoey
text/vnd.glimmer+javascripttext/vnd.glimmer+typescripttext/x.javascript.glimmertext/x.typescript.glimmertext/x-javascript.glimmertext/x-typescript.glimmerxconvention is less familiar to me thanvndtho -- but I admit, I don't know the history behind either prefix