简体   繁体   English

用于asp.net的HTML Compressor

[英]HTML Compressor for asp.net

Anyone knows a good way or tool to compress the HTML that is sent to the client? 任何人都知道一种压缩发送给客户端的HTML的好方法或工具吗?

I was thinking in compressing the HTML in the .aspx files in the production server only, so maybe a tool for doing this would be the right choice. 我只想在生产服务器中的.aspx文件中压缩HTML,所以也许这样做的工具是正确的选择。

A better way is to enable GZIP, you can enable this in IIS 更好的方法是启用GZIP,您可以在IIS中启用它

iis6 | iis6 | iis7 IIS7

An article here about ASP.NET white space cleaning with no runtime cost . 这里有一篇关于ASP.NET白色空间清理的文章,没有运行时成本

Cleaning out the unnecessary whitespace has the effect of compressing the data. 清除不必要的空格会产生压缩数据的效果。

Telerik just released a compression utility as part of their RadControls for ASP.NET AJAX suite. Telerik刚刚发布了一个压缩实用程序,作为其ASP.NET AJAX套件的RadControls的一部分。 If you aren't a customer you can check it out using the free, non-time-bombed trial of their controls. 如果您不是客户,可以使用其控件的免费,非定时轰炸试用版进行检查。

Check out this post and this post for details. 查看这篇文章这篇文章了解详情。

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

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