zoukankan      html  css  js  c++  java
  • 禁用Visual Studio 2013的Browser Link

    Visual Studio 2013中在IE浏览器浏览localhost网站时候,发现会不断有下面链接的请求

    http://localhost:49794/d76fb76737964858a309bc8e7d56952c/arterySignalR/poll?transport=longPolling&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAp2UV3AFk7Uak46johKPYpwAAAAACAAAAAAADZgAAwAAAABAAAADnrobvvJnnTFi0cMfQO5JwAAAAAASAAACgAAAAEAAAAOA%2FRYsqIsEsW90%2FEfFuie0oAAAAh1Iy1lQwQHlb5m1ZJVuR6TOwdsnusmkXFeoTXRAz2c9wDrexlU%2Bt8xQAAADWTwSGS4gbNh3fbXpVsuGkse2tCQ%3D%3D&messageId=d-EA28A29C-B%2C0%7CQ%2C4%7CR%2C0&requestUrl=........

    这是VS2013新增的Browser Link,功能虽然“强大”,但会造成不必要的干扰。但默认是开启的,会在页面中自动添加如下的代码

    1
    2
    3
    4
    <!-- Visual Studio Browser Link -->
    <script type="application/json" id="__browserLink_initializationData"> {"appName":"Firefox","requestId":"861592d477c64fd590b602a9f006c074"} </script>
    <script type="text/javascript" src="http://localhost:2968/f26bea4f8e6a45868431324e7994cd75/browserLink" async="async">
    </script> <!-- End Browser Link -->

    如何干掉Browser Link功能?还我干净的页面代码。

    check the msdn blog:

    http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

    . How do I turn off Browser Link?

    You can uncheck “Enable Browser Link” and it will be turned off “ Browser Link” for all future requests made.

    image

    You can also use the following appsettings in your web.config file.

    1. Set appSetting “vs:EnableBrowserLink” to “false ““. This will  disable Browser Link.

    image

    2. Set debug= false in web.config file. This will  also disable Browser Link. Note that debug= true is required for Browser Link feature to work.

  • 相关阅读:
    WEB上传大文件
    Java+超大文件上传
    php+文件夹上传
    php上传视频大文件
    每一个程序猿需掌握的20个代码命名小贴士
    Mysql整数运算NULL值处理注意点
    拓展欧几里得模板
    bzoj 1088 简单dfs
    决策树
    进程-IPC 管道 (一)
  • 原文地址:https://www.cnblogs.com/liuxuqiang/p/5038345.html
Copyright © 2011-2022 走看看