View Full Version : How to add an Expires Header on JavaScript, CSS and image files
ksachdeva
07-25-2007, 04:48 AM
Hi,
Would appreciate if someone could point out how to add expires header on javascript, css and image files. My understanding is that you can do this on the IIS Server. Since we are using you (i.e. discountasp) as a hoster how this can be done ?.
Regards & thanks
Kapil
raymondp
07-25-2007, 10:14 AM
Found this link on the internet. Hopefully this should help you out.
http://howto.gumph.org/content/reduce-webserver-bandwidth/
ksachdeva
07-25-2007, 10:21 AM
This links talks about setting it up on apache server. I am aware of that but my site is hosted with discountasp.net which runs IIS and naturally I as a customer do not have that great level of access on settings. I was wondering if there is any way I can accomplish setting "expires header" from my code.
Ideally it would be great if through the control panel, discountasp.net could provide such a facility
Regards
Kapil
Joseph Jun
07-26-2007, 11:59 AM
I don't know about the images but you can open up a ticket with the Technical Support team and request that .js and .css files be handled by ASP.NET.
Please view the following response for details on how to expire the content:
http://community.discountasp.net/default.aspx?f=24&m=18777
-W
Winston
DiscountASP.NET
www.DiscountASP.NET
vBulletin® ©Jelsoft Enterprises Ltd.