Prevent Caching

Discussion in 'ASP.NET 2.0' started by ecmatechnet, May 5, 2006.

  1. Hey All

    Does anyone know how to prevent a spesific page from being cached using ASP.NET 2.0?

    Any help would greatly be appreciated.

    Regards
    NetSpike[​IMG]
     
  2. You can try this..

    Response.CacheControl = "no-cache"
    Response.AddHeader "Pragma", "no-cache"
    Response.Expires = -1


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     

Share This Page