简体   繁体   English

IIS动态压缩和HttpHandlers

[英]IIS dynamic compression and HttpHandlers

有谁知道是否可以使用IIS动态内容压缩来压缩HttpHandler (.ashx)的输出?

Sure. 当然。 Make sure that the right content type is in the list of the dynamic content types (they are set on a server level, you can get to them through IIS settings editor, in system.webServer\\httpCompression, dynamicTypes collection). 确保正确的内容类型在动态内容类型的列表中(它们在服务器级别上设置,您可以通过IIS设置编辑器(位于system.webServer \\ httpCompression,dynamicTypes集合中)进行访问。 If the type is not in the list, you'll be able to see DYNAMIC_COMPRESSION_NOT_SUCCESS Reason="NO_MATCHING_CONTENT_TYPE" when you do FREB . 如果类型不在列表中,那么在执行FREB时,您将看到DYNAMIC_COMPRESSION_NOT_SUCCESS Reason =“ NO_MATCHING_CONTENT_TYPE”。 Don't forget to restart the application pool. 不要忘记重新启动应用程序池。

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

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