Compressing a web service response for jQuery

后端 未结 5 1049
轮回少年
轮回少年 2020-12-09 12:41

I\'m attempting to gzip a JSON response from an ASMX web service to be consumed on the client-side by jQuery.

My web.config already has httpCompression set like so:

5条回答
  •  盖世英雄少女心
    2020-12-09 13:35

    You can change httpCompression only in applicationHost.config. See this link

    Like you, I tried changing it in web.config first, but it didn't work. It worked only when I added the following lines to C:\Windows\System32\inetsrv\config\applicationHost.config:

      
           ...
           
           
           ...
      
    

提交回复
热议问题