How can I get ASP.NET AJAX to send its JSON response with GZip compression?

前端 未结 4 635
囚心锁ツ
囚心锁ツ 2021-02-05 19:35

I have compression enabled within IIS7 and it works as expected on all responses except for those constructed by ASP.NET AJAX. I have a web service that provides data to the cl

4条回答
  •  自闭症患者
    2021-02-05 20:16

    What browser are you using? There's a bug in IE 6 that causes errors in compression. So ASP.NET AJAX turns off compression to IE 6 browsers:

    http://weblogs.asp.net/scottgu/archive/2005/06/28/416185.aspx

    Also, did you enable compression for ASMX files?

提交回复
热议问题