Oh another one I came across is, you serve .env
files, right? As per this article: https://doc.babylonjs.com/how_to/use_hdr_environment
As the generated DDS files can be relatively large (32Mb for a 512px wide file), we introduced in Babylon a special way to pack your texture. Here are the steps to follow to create the .env
files used in BabylonJS
I was able to find some other types - for instance .glb is already in that wiki.,
is there some official docs that also list the MIME type? I looked over the same MS docs with the DDS, and I didn’t see something for .env
(could have missed it)
I did see one reference to MIME in relation to rawGIT:
using rawgit.com
You were able to use GitHub with a link generated by the RawGit site to ensure correct MIME type. Unfortunately this site has now closed.
Any existing links to files using RawGit can be updated using Raw Git to jsDelivr. Changes should be made to RawGit links before October 2019.
… but that’s it.
Another thing, is it might not be a bad idea to start a page in the docs with all the ‘special’ MIME types? I think the maintainer of mime-db would accept the Babylon docs themselves if it clearly mentioned the types. At the very least a disambiguation of all the various formats. Would you like help with this? I could get something started…
here’s what he wants to know on each entry:
source - where the mime type is defined. If not set, it’s probably a custom media type.
apache - Apache common media types
iana - IANA-defined media types
nginx - nginx media types
(so for source I’d just add a link to the right place)
extensions - known extensions associated with this mime type.
(.dds, .env, etc)
compressible - whether a file of this type can be gzipped.
(I actually need help here, like I’m not sure if a .dds can be? I’d think yes because its just a big image, right? but it has more to it than just that too)
charset - the default charset associated with this type, if any.
(I think this would not apply because these are images and things, right?)
Anyways, let me know if you want me to help round up replies in here and neatly format them into a docs-worthy page! I’ll even go hunt down examples if I can.