收藏一篇关于Asp.net Response.Filter的文章

Capturing and Transforming ASP.NET Output with Response.Filter

https://weblog.west-wind.com/posts/2009/Nov/13/Capturing-and-Transforming-ASPNET-Output-with-ResponseFilter

 

摘要:使用Response.Filter来进行内容处理的时候,一定要注意,为了让IIS更好的使用内存,Response.Filter的输出并不是把整块内容一起输出的,而是按照块输出的(大约16k以下),所以使用Response.Filter的时候,就不能直接使用Write和Flush,而应该把整块内容的流程缓存起来之后再Flush。

这篇文章介绍了实现方法,有兴趣的可以看看。

posted @ 2017-06-20 21:02  acles  阅读(255)  评论(0编辑  收藏  举报