IIS Set Expiration Dates adds the expiration header only to static content

12 Steps To Faster Web Pages With Visual Round Trip Analyzer recommends (among others useful suggestions) to  Set Expiration Dates - follow Using Content Expiration (IIS 6.0), .
 
 
Finally the post  IIS Content expiration header and ASP.NET cleared my concerns:
IIS is smart enough to add the expiration header only to static content.
It automatically adds the header to images and css files, without touching
the aspx pages.
 But, like the author of the post, I am also wonder , how does IIS determine what extensions fall under static content? Is
there a way to modify this list?
Related: a few useful advices from Best practices for creating websites in IIS 6.0  
Custom Headers:
Remove the X-Powered-By: ASP.NET header. You really don't need it unless you want to attach Visual Studio Remote Debugger to your IIS. Otherwise, it's just sending 21 bytes on every response.
  • Add "From" header and set the server name. I do this on each webserver and specify different names on each box. It's handy to see from which servers requests are being served. When you are trying to troubleshoot load balancing issues, it comes handy to see if a particular server is sending requests. 
  • Also turn on IIS 6.0 gzip compression.  Note that enabling in IIS 6.0 in the Properties, Service tab is not good enough.

  • More links:
     
    • Share This Post:
    • Share on Twitter
    • Share on Facebook
    • Share on Technorati
    posted @ Wednesday, December 31, 2008 3:57 PM
    Print

    Comments on this entry:

    # re: IIS Set Expiration Dates adds the expiration header only to static content

    Left by Diego at 4/27/2010 9:21 AM
    Gravatar
    Thanx man!!! really really useful clarification about something that is silly explained at Microsoft site. As you say is hard to understand way iis doesn’t specify what static content is.
    Ps: Cool links!

    Your comment:



    (not displayed)


     
     
     
     
     

    Live Comment Preview:

     
    «February»
    SunMonTueWedThuFriSat
    2930311234
    567891011
    12131415161718
    19202122232425
    26272829123
    45678910