What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 6361 |  Welcome, Guest!   Register  Login
 Home > Blogs > ASP.NET > Remove extra http header for speed up .net website performance ...
Rajkatie

Remove extra http header for speed up .net website performance

 Blog author: Rajkatie | Posted on: 4/25/2012 | Category: ASP.NET Blogs | Views: 974 | Status: [Member] | Points: 75 | Alert Moderator   


When an HTTP request is made to a IIS, HTTP headers are transferred from the Browser to the webserver and vice-versa. The HTTP Headers sent by IIS to the browser gives following information.

In the above image, following two header not required. By removing it we can save small amount of bandwidth usage of .net application and potentially improving site secutiry.

1) x-powered-by

2) x-aspnet-version

 

We can remove above two header using a site specific web.congfig file

1) Remove aspnet-version

 <system.web>
    <httpRuntime enableVersionHeader="false"/>
  </system.web>

2) Remove x-powered-by

<system.webServer>

    <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By"/>
      </customHeaders>
    </httpProtocol>
       </system.webServer>

 




Rajesh Patel
MCPD,MS
Brainbench (Asp.Net 4.0 and CSS 3.0)
Found interesting? Add this to:



 More Blogs from Rajkatie

     More ...

    About Rajesh Patel

    Experience:6 year(s)
    Home page:http://www.dotnetfunda.com/profile/rajkatie.aspx
    Member since:Tuesday, February 14, 2012
    Level:Silver
    Status: [Member]
    Biography:More than 6 years of professional experience in web based application development using Microsoft technology stack like ASP.NET with C#, .Net Ajax,Sql Server 2008/2005, .Net Web Services (Asmx,Page Methods and WCF).

    Ability choose the best technology, platform and technique, based on a given problem definition and drive the best implementation through all development phase.
    >> Write Response - Respond to this post and get points

    More Blogs

    About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
    General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
    Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 10:31:49 AM