我已经为我的Azure Web角色配置了适当的压缩。 .aspx页面和静态页面(如* .css)都被正确压缩。对Windows Azure Web角色的JSON数据进行HTTP压缩
<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true" />
我有几个不同的[System.Web.Services.WebMethod]的,虽然没有返回GZIP的数据。每个请求的大小大约为350KB,所以我认为如果我能够实现这个目标,应该会快得多。
在我的webMethod中,我创建了一个对象列表,返回对象,并且我假设某种类型的内置序列化器将它变成了JSON?
有没有办法强制这个内容被压缩? 非常感谢!
看起来这应该回答这个问题:http://stackoverflow.com/questions/2775261/how-to-enable-gzip-http-compression-on-windows-azure-dynamic-content – 2012-02-15 21:45:23