简体   繁体   English

IIS 10 服务器未压缩.x3d 文件类型

[英]IIS 10 server is not compressing .x3d file type

I've couple of 3d models for my webpage which are high size.我的网页有几个 3d 模型,它们是大尺寸的。 I'm using IIS server to host the site.我正在使用 IIS 服务器来托管该站点。 IIS is compressing html, css and js files. IIS 正在压缩 html、css 和 js 文件。 But it is not compressing.x3d file.但它不是压缩.x3d 文件。 There is no 'content-encoding' in response header for.x3d file.响应 header for.x3d 文件中没有“内容编码”。 What am i missing here?我在这里想念什么? Do I need to add file ext/mime type somewhere in the server??我需要在服务器的某处添加文件 ext/mime 类型吗? Thank you谢谢

The mime type of.x3d should be model/x3d+xml, model/x3d+binary, model/x3d+vrml. .x3d的mime类型应该是model/x3d+xml、model/x3d+binary、model/x3d+vrml。 So first of all, please set the correct mime type in IIS MiME TYPES.所以首先,请在 IIS MiME TYPES 中设置正确的 mime 类型。

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/*.然后您可能需要将内容类型 mode/* 添加到 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.默认情况下,IIS 不压缩.x3d 文件。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM