# Friday, November 19, 2004
« UI Abstraction -- Component Based Develo... | Main | using log4net database storage -- review... »

We had a situation where the page wasn't expiring, and we were getting faulty results. So today's tip is a quick and dirty -- make the page expire!

 private void EnsurePageExpires()

{

Response.Expires = -1;

  Response.ExpiresAbsolute = DateTime.Now;

 Response.CacheControl = "no-cache";

}