George_Fal 2011-10-19 08:57 采纳率: 0%
浏览 90

使用HTTP 1.1的AJAX调用

We have one of our sites hosted externally, and all of our internet access is through a proxy.

We've found that this remote site (ASP.NET 4.0, IIS 7.5, Server 2008 R2) doesn't work on most of our domain machines due to the "Use HTTP 1.1 through proxy connections" setting not being set in IE9 - the ScriptResource.axd pages get garbled and come out as illegible characters. (WebResource.axd and all other calls are fine).

We can fix this internally, but are worried that other users may have the same problem, so my question is: is there a setting that controls how ScriptResource.axd is served by IIS that we can change to alleviate this?

  • 写回答

1条回答 默认 最新

  • 零零乙 2011-10-26 07:39
    关注

    I eventually found the the 64-bit ScriptResource.axd handler was sending compressed data whether the browser could handle it or not.

    The fix was to add this to the web.config:

    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <urlCompression doDynamicCompression="false" />
    </system.webServer>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献