I am a web designer and usually design corporate web sites which often does not require update. So I want to cache the output for one day. How can I do this?
Also any suggestions for better performance for asp.net on slow servers are accepted.
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.
I’d recommend you to follow this rules in order to improve performance in general
http://developer.yahoo.com/performance/rules.html
If you install the YSlow for firebug it will validate all these rules for you.
And regarding to cache in particular I recommend you to read this tutorial. Cache is a very extensive topic and it’s not easy to explain everything in 10 lines 🙂
http://www.mnot.net/cache_docs/#CONTROL
Specifically talking about the output cache directive for ASP NET pages, it’s quite simple to use. Here you have the reference
http://msdn.microsoft.com/en-us/library/hdxfb6cy.aspx
But please take into account that is important to use the cache for pages and also for other resources as css, JS and images.