我有一个ASP.NET 3.5的网站驻留在IIS7。我使用的动态COM pression,想看看我是否能实现分块编码。是否有IIS或web配置,使得它的一些设置?
I have an ASP.NET 3.5 website residing on IIS7. I am using dynamic compression and wanted to see if I can enable chunked encoding. Is there some setting on IIS or web config that enables it?
推荐答案在我的经验中,调用Response.Flush()将设置传输编码为分块。而实际上我认为设置Response.BufferedOutput将其设置为每次分块是Response.OutputStream刷新。
In my experience, calling Response.Flush() will set the Transfer-Encoding to chunked. And actually I think setting Response.BufferedOutput will set it to chunked everytime Response.OutputStream is flushed.
这是除非内容长度已定,那么它只是刷新输出无需设置分块。
That is unless a Content-Length has been set, then it just flushes the output without setting chunked.
更多推荐
启用ASP.NET块传输编码
发布评论