ingig.net

Ideas, problems and development of Fronturs websites

Remove item from Response Header

clock April 17, 2008 12:16 by author ingig

Every time somebody requests a item from our webserver it inserts a litle info about itself into the response header

Server:Microsoft-IIS/6.0

I've been wondering how to remove this since I think it pretty pointless

You need to create a httpmodule, 

public class WebsiteDomainModule : IHttpModule {
    // IHttpModule members
    public void Init(HttpApplication httpApp) {
        httpApp.PreSendRequestHeaders += new EventHandler(this.OnPreSendRequestHeaders); 
    }

    public void Dispose() {
        // Usually, nothing has to happen here...
    }
    public void OnPreSendRequestHeaders(object sender, EventArgs e) {
        HttpContext.Current.Response.Headers.Remove("Server");
    }
}

Just add a reference into you web.config file and that line is gone.

By removing that line we save about 25 MB of traffic data every day, about 3GB a month. Not bad.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Trying SubSonic

clock April 16, 2007 15:49 by author ingig
I've been trying SubSonic 2 for few days now and it looks pretty cool, I had some problems with updating and deleting record but that seems to be fixed by now. I think that about a two year or so we will be very close to let a website generate it self just by database. SubSonic is pretty far from there but I can defenently see it in the future.

Added few links to the site, just what I remeber at the moment

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Using Amazon S3

clock April 16, 2007 12:14 by author ingig
We are starting to use Amazon S3, and at this moment we have uploaded about 20% of our photos, or about 160 GB. The total images that we have are about 9 million so it will take some time before we finish uploading every photo. Most of those files are comming from users on barnaland.is and after few days I plan have the web display the image from Amazon S3 if it's available.

There are few reasons why I'm doing this. First I saw the blog from the CEO of SmugMug, Don MacAskill where it talks about that his company has saved over $500.000 in 6 months. Well I don't expect to save that amout of money but I belive it will save some money. The price is pretty good, $0.15 for every stored gb per month and $0.2 for every gb transfered in/out. Right now we are paying about $0.34 for the gb transfer and transfering about 3 Terabytes per month. Hopefully one day we will be able to get rid of our storage unit and just save the files on Amazon S3. The price on each gb stored is harder to calculate but it's higher then $0.15 per gb, plus it's safer than it could ever be stored by us.

I'm just hoping that Google, Microsoft and maybe some other big company will enter this market, to drive the price even lower.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Twitter Updates

    Myndir

    Er.is

    Calendar

    <<  November 2008  >>
    SuMoTuWeThFrSa
    2627282930311
    2345678
    9101112131415
    16171819202122
    23242526272829
    30123456

    Archive

    Tags

    Categories


    Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in