BabylonJS uses .dds files as environment skybox textures.
Serving from localhost or other webserver, dds file works.
While loading from Cloudfare Pages I get this error:
“Invalid magic number in DDS header”, which means it is served with the wrong mime-type.
I am not an http wizard, but loading it from local server or other resources I get this (everything works):
(sorry about the ugly paste, as a new user I can only post one image)
|Date|Fri, 10 Dec 2021 16:54:39 GMT|
|If-Modified-Since|Fri, 03 Dec 2021 15:03:48 GMT|
|User-Agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0|
While from Cloudfare Pages I get this (and the DDS is not recognized):