Set cache-control for aspx pages
I have an asp.net web site and I would like the client browser to cache the HTML output of aspx pages once it gets them.
From reading around I found out that IIS7 does not support this out-of-the-box, so I added the following code to the OnLoad event of my main master page: