Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 654371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:29:13+00:00 2026-05-13T22:29:13+00:00

Is Page.Load the earliest point in the Page.Load life cycle to add Response.AppendHeader?

  • 0

Is Page.Load the earliest point in the Page.Load life cycle to add Response.AppendHeader?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:29:13+00:00Added an answer on May 13, 2026 at 10:29 pm

    You can call Response.AppendHeader() at any time before headers are sent. There are several events before Load that you could call it in. Init would be the obvious one.

    What are you trying to do exactly?

    EDIT: From your comment, you should be able to add the headers anywhere, but you should read the documentation for AppendHeader, specifically:

    If you use the AppendHeader method to
    send cache-specific headers and at the
    same time use the cache object model
    (Cache) to set cache policy, HTTP
    response headers that pertain to
    caching (Cache-Control, Expires,
    Last-Modified, Pragma, and Vary) might
    be deleted when the cache object model
    is used. This behavior enables ASP.NET
    to maintain the most restrictive
    settings. For example, consider a page
    that includes user controls. If those
    controls have conflicting cache
    policies, the most restrictive cache
    policy will be used. If one user
    control sets the header
    “Cache-Control: Public” and another
    user control sets the more restrictive
    header “Cache-Control: Private” via
    calls to SetCacheability, then the
    “Cache-Control: Private” header will
    be sent with the response.

    So be wary with your cache control headers 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wanting to know when is the earliest point I can load additional
Page Load: protected void Page_Load(object sender, EventArgs e) { tb.Columns.Add(Id, typeof(int)); tb.Columns.Add(FileName, typeof(string)); tb.Columns.Add(FilePath,
Then: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CheckBoxList1.Items.Add(new ListItem(item1)); CheckBoxList1.Items.Add(new
In my page load, am I calling ReturnStuff() once or three times? If I
I want on page load for the class of a li tag to be
On my page in the Page_Load event I add a collection of strings to
I would like to detect when a page load request give to a UIWebView
When page-load speed is the priority, is it better to use a minimal, lightweight
On page load I am populating my own object, storing in session & it
Here on page load i am trying to store the values from form to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.