-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated mime type for binary buffer #1180
Conversation
Consider that most web servers serve static files using a lookup table to map file extensions to HTTP MIME type headers. One cannot reasonably expect web servers to be reconfigured to serve all For example, see the 6th entry in this table: MDN's Incomplete List of MIME Types Apache's list: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
We cannot save anything to a |
IIS 7 does this too:
(Taken from |
Do we know if common servers like Apache or Nginx have rules for classic extensions like OBJ, DAE, or FBX? |
They do not, and perhaps we should nudge them to add But my objection here is that many servers, including at least Apache and IIS, already do have factory rules for |
Makes sense. Just trying to gauge the likelihood of their handling |
So, to serve glTF correctly, one must manually add the corresponding MIME types to the server configuration. Moving away from Cesium registers all glTF-related files here for IIS and here for Node Express. Neither one needs to register |
Great points. Open suggestions for an alternative extension |
couple more ideas in no order
|
No particular preference on my part. I like |
I don't have a strong preference either, but I prefer the extension to be easily distinguishable from |
Since |
@sbtron? 😄😄😄 |
Superseded by #1877. |
The registration request is still pending with IANA but getting the PR started for issue #944
In addition to switching to a specific MIME type do we also want to change the recommended extension (.bin) to something else?
My current thinking is rather than creating a new extension we can keep the recommended extension to .bin but add an implementation note that the implementations could chose to have a different extension if they wanted. This would essentially mean any glTF loader should not explicitly check for a .bin extension and simply load whatever filename the buffer uri points to.