Groups > Web Hosting > Web Hosting with IIS and ASP dotNET > Re: How to Add an Expires Header to images, css and javascripts?




How to Add an Expires Header to images, css and javascripts?

How to Add an Expires Header to images, css and javascripts?
Thu, 14 Feb 2008 13:23:18 +000
Hello all,

 

I'm following the Y! instructions about performance.

It can be seen at this page

 
High Performance Web Sites: Rule 3 - Add an Expires Header


http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html

 

I'd like to know how I can set up my IIS in order to be possible it, itself set
an expire header for the appropriate resources.

I know it can be done via ASP.NET by using some HttpModule, but I wouldn't like
to code one more HttpModule to get all images, css and javascripts and
practically manually do this task.

is there any way to configure IIS to do that for me?
Post Reply
Re: How to Add an Expires Header to images, css and javascripts?
Thu, 14 Feb 2008 14:00:36 +000
From IIS Manager, right-click on the page/file and select Properties. Go to the
HTTP Headers tab, check Enable Content Expiration and selection the value.
Post Reply
about | contact