代码之家  ›  专栏  ›  技术社区  ›  josh3736

删除托管融合URL重写器插入的HTTP头

  •  2
  • josh3736  · 技术社区  · 14 年前

    我在玩弄 Managed Fusion's URL Rewriter

    X-Rewritten-By: ManagedFusion (rewriter; reverse-proxy; +http://managedfusion.com/)
    X-ManagedFusion-Rewriter-Version: 3.5
    

    如何删除这些标题(出于性能方面的考虑,我想把事情做小。)

    不幸的是 documentation

        <!--
        This is just a minimal sample configuration file that shows how to declare
        the configuration sections.
    
        Because an XML Schema Definition (XSD) is generated for each configuration
        section, it should be trivial to edit these files because you have
        IntelliSense on the XML definition.
        -->
    

    1 回复  |  直到 14 年前
        1
  •  1
  •   josh3736    10 年前

    最后在仔细阅读之后找到了配置选项 the XSD

    allowVanityHeader .

    <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter">
        <rewriter allowVanityHeader="false" />
    </managedFusion.rewriter>
    

    (包括在 <configuration>