我通过以下命令为IIS添加了mime类型的静态文件编码,如下所示。但我不知道如何消除哑剧类型。请让我知道appcmd命令,以消除我添加的mime类型。
示例:编码静态文件
appcmd set config /section:httpCompression /+staticTypes.[mimeType='text/xml',enabled='true'] /commit:apphost
我试过以下命令。
appcmd delete config /section:httpCompression /+staticTypes.[mimeType='text/xml',enabled='true'] /commit:apphost
但它显示出错误。
发布于 2022-10-27 05:44:18
类型如下所示:
appcmd set config /section:httpCompression /+staticTypes.[mimeType='text/xml',enabled='true'] /commit:apphost消除mime类型是这样的:/- (请注意而不是 /+**)** )。
appcmd set config /section:httpCompression /-staticTypes.[mimeType='text/xml',enabled='true'] /commit:apphost我的测试结果是成功的:

https://stackoverflow.com/questions/74214874
复制相似问题