开发者社区> 问答> 正文

iis7设置了页面压缩功能,没有生效

已解决

展开
收起
1919337314441266 2019-03-04 16:23:25 808 0
3 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/
    采纳回答
    IS7中开启了gzip后,工作机制是如果访问次数在规定的时间内没有超过多少次,就不启用gzip,例如

    以下表示在5秒内访问次数超过10次就启用gzip

    determining factor for a return value of true is two requests in a 10-second time span. You can configure this behavior by modifying the frequentHitThreshold and frequentHitTimePeriod attributes of the <serverRuntime> element in your ApplicationHost.config file. For example, to configure your server to return a value of true when a URL has been requested 10 times in a 5-second period, you would modify the <serverRuntime> element in your ApplicationHost.config file by adding the following attributes:

    <serverRuntime
        frequentHitThreshold="10"
        frequentHitTimePeriod="00:00:05" />

    望采纳,谢谢
    2019-03-04 16:29:38
    赞同 2 展开评论 打赏
  • 回答已采纳:

    IS7中开启了gzip后,工作机制是如果访问次数在规定的时间内没有超过多少次,就不启用gzip,例如

    以下表示在5秒内访问次数超过10次就启用gzip

    determining factor for a return value of true is two requests in a 10-

    second time span. You can configure this behavior by modifying the frequentHitThreshold and frequentHitTimePeriod attributes of the element in your ApplicationHost.config file. For example, to configure your server to return a value of true when a URL has been requested 10 times in a 5-

    second period, you would modify the element in your ApplicationHost.config file by adding the following attributes:

    <serverRuntime

    frequentHitThreshold="10"
    
    frequentHitTimePeriod="00:00:05" />
    

    望采纳,谢谢

    官方帮助文档地址:阿里云帮助中心

    更多参考: 阿里云官方(新用户需官网注册查看)

    2021-06-15 18:09:13
    赞同 展开评论 打赏
  • 放到 applicationHost.config  替换serverRuntime标签吗
    2019-03-04 16:52:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
基于浏览器的实时构建探索之路 立即下载
WEB浏览器中即将发生的安全变化 立即下载
低代码开发师(初级)实战教程 立即下载