Wednesday, July 14, 2010

IIS Content expiration header and ASP.NET

To increase the performace of application we can set content expiration to




specific folder in iis .Normally we are setting this features to static content in web application (Images)



It gives the lot of advantage .







Steps for setting cache expiration to image folder





-->Start





--> Control Panel



-->Administration tools-->Internet Information Services (IIS) Manager





-->Expand your site from tree view--> Select requred folder












-->go to Features view -->Double click "Http Response Headers"



-->Select "Set common headers link -->prompts a window



-->Check Expire Web Content



-->Select radion button 'After' and in dropdown select the when the content should be expire



-->reset iis using "iisreset" command in command prompt





-->Browse your application

2 comments:

Kumar said...

HI,

I WANT TO PROVIDE DYNAMIC CONTENT EXPIRATION CAN YOU EXPLAIN ME WHAT ARE THE POSSIBLE WAYS.

THANKING YOU ADVANCE

Anonymous said...

I am following your blog .The way your explanation is good(With snap shots)

Thank you