Atomia.Web.Plugin.PublicOrder.GeneralItems.GlobalEventsHandler.Application_BeginRequest C# (CSharp) Метод

Application_BeginRequest() публичный Метод

Handles the BeginRequest event of the Application control.
public Application_BeginRequest ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void
        public override void Application_BeginRequest(object sender, EventArgs e)
        {
            HttpContext.Current.Response.AppendHeader("Pragma", "no-cache");
            HttpContext.Current.Response.AppendHeader("Cache-Control", "no-cache");

            HttpContext.Current.Response.CacheControl = "no-cache";
            HttpContext.Current.Response.Expires = -1;

            HttpContext.Current.Response.ExpiresAbsolute = new DateTime(1900, 1, 1);
            HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
        }