Search code examples
iiscompressionx3dx3dom

IIS 10 server is not compressing .x3d file type


I've couple of 3d models for my webpage which are high size. I'm using IIS server to host the site. IIS is compressing html, css and js files. But it is not compressing .x3d file. There is no 'content-encoding' in response header for .x3d file. What am i missing here? Do I need to add file ext/mime type somewhere in the server?? Thank you


Solution

  • The mime type of.x3d should be model/x3d+xml, model/x3d+binary, model/x3d+vrml. So first of all, please set the correct mime type in IIS MiME TYPES.

    Then you may need to add content type mode/* to IIS manager->site node->Configuration manager->system.webServer/httpCompression->static type->add->enable =true,mime type= model/*.

    By default, IIS don't compress .x3d file.

    enter image description here