How to set Leverage browser caching at ASP.net IIS 7.0
Setting an expiry date or a maximum age in the HTTP headers and for pictures in web.config file
How to set Leverage browser caching at ASP.net IIS 7.0 Setting an expiry date
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For ASP.net, in the global.asax file, in the Application_PreRequestHandlerExecute function call Response.Cache.SetExpires and Response.Cache.SetMaxAge methods.
For pictures or static content, in IIS 7 web.config use
replacing 7 days with desired duration.