How do I compress a Json result from ASP.NET MVC with IIS 7.5

前端 未结 5 782
春和景丽
春和景丽 2021-01-30 00:22

I\'m having difficulty making IIS 7 correctly compress a Json result from ASP.NET MVC. I\'ve enabled static and dynamic compression in IIS. I can verify with Fiddler that normal

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 00:49

    Make sure your %WinDir%\System32\inetsrv\config\applicationHost.config contains these:

    
        
        
          
            
                   
          
        
    
    

    From the link of @AtanasKorchev.

    As @simon_weaver said in the comments, you might be editing the wrong file with a 32 bit editor on a 64 bit Windows, use notepad.exe to make sure this file is indeed modified.

提交回复
热议问题