How to add an Expires Header on JavaScript, CSS and image files

Discussion in 'HTML / PHP / JavaScript / CSS' started by ksachdeva, Jul 25, 2007.

  1. 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
     
  2. 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
     
  3. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    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
     

Share This Page