How to add the repsonse header in classic asp? [Answered]RSS

1 reply

Last post Jan 03, 2018 01:35 AM by Yuk Ding

  • How to add the repsonse header in classic asp?

    Jan 02, 2018 02:33 PM|jimschan|LINK

    Hi,

    I would like to create a custom response header via classic ASP.  But I have no idea about how to achieve this.  I have known that the IIS could rewrite or set the response header. So how could I set the response header programmatically so that I should be able to control the expire time for the browser cache.

    Thanks in adavance.

  • Re: How to add the repsonse header in classic asp?

    Jan 03, 2018 01:35 AM|Yuk Ding|LINK

    Hi jimschan,

    You could use response.addheader()method to achieve this. In fact, you don't have to add the header to control the browser cache. You only need to set the Response.ExpiresAbsolute property in your web page like

    Response.ExpiresAbsolute [= [date] [time]]

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.