在共享托管环境中压缩asp.net服务器的json响应

在共享托管环境中压缩asp.net服务器的json响应,asp.net,json,iis,web-config,gzip,Asp.net,Json,Iis,Web Config,Gzip,我的托管服务器是共享托管环境中的godaddy。 由于共享托管环境,我无法访问IIS设置 出于许多目的,我向ajax请求发送json响应 我在web.config文件中设置了以下内容 <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%\system32\inetsr

我的托管服务器是共享托管环境中的godaddy。 由于共享托管环境,我无法访问IIS设置

出于许多目的,我向ajax请求发送json响应

我在web.config文件中设置了以下内容

<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
            <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
            <dynamicTypes>
                <add mimeType="text/*" enabled="true"/>
                <add mimeType="message/*" enabled="true"/>
                <add mimeType="application/javascript" enabled="true"/>
        <add mimeType="application/json" enabled="true"/>
                <add mimeType="*/*" enabled="false"/>
            </dynamicTypes>
            <staticTypes>
                <add mimeType="text/*" enabled="true"/>
                <add mimeType="message/*" enabled="true"/>
                <add mimeType="application/javascript" enabled="true"/>
        <add mimeType="application/json" enabled="true"/>
                <add mimeType="*/*" enabled="false"/>
            </staticTypes>
        </httpCompression>

我可以将我的.aspx页面设置为gzip,但它不会压缩json响应。
如何压缩json响应…?

我认为答案是您需要自己的VPS服务器(如果您有预算)或自己的专用服务器。然后您可以修改IIS7的applicationHost.config。我认为答案是您需要自己的VPS服务器(如果您有预算)或专用服务器。然后可以修改IIS7的applicationHost.config

真的吗。。?已经一年多没有反应了真的吗。。?已经一年多没有回应了。