Document the official MIME type for .astro files
#13335
MichaelDeBoey
started this conversation in
Ideas
Replies: 1 comment
-
|
It comes from this (jshttp/mime-db#446): for Express to accept adding a MIME type for a certain file type, it needs to be based on an official source. Ideally, if Astro wants it to be added, it should be registered through IANA. But that’s not always the case—sometimes a simple reference in the documentation stating what the MIME type should be is enough. Personally, I’m not sure what the point of adding a special MIME type for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
.astrofiles.Some tools/frameworks use conventions such as
text/x-<framework>, but there is no authoritative reference from the Astro project itself.This create ambiguity for other projects to rely on a consistent mapping.
Having an official statement would help:
Would the Astro project be open to document an official recommendation for the MIME type of
.astrofiles?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-astro(liketext/plain,text/html, ...) is preferred, documenting that choice would be equally helpful.Thank you for your work and for considering this!
CC/ @FredKSchott @natemoo-re
Beta Was this translation helpful? Give feedback.
All reactions