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 304509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:17:14+00:00 2026-05-12T07:17:14+00:00

I have an asp.NET application which has a fairly heavy mainpage. The content of

  • 0

I have an asp.NET application which has a fairly heavy mainpage. The content of this mainpage is only rarely changed, except by actions on that same page.

How do I make the browser retrieve the page from cache when the user presses the “Back” button in the browser, instead of contacting the server every single time, forcing it to render the page again?

Thanks, Jonas

  • 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-12T07:17:14+00:00Added an answer on May 12, 2026 at 7:17 am

    The short answer is: You can’t.

    I think the closest you can do is to include some HTML Meta tags in your webpage, specifically the one relating to caching and expiration such as:

    <META HTTP-EQUIV="EXPIRES" CONTENT=" [some date/time in the future] ">
    

    and

    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PUBLIC">
    

    Once you’ve included these in your rendered web page that is sent to the client browser, you just have to hope that the browser, upon the user clicking the back button, will displayed a “cached” version of your page rather than instigating another request/response cycle to your web server, thereby causing your web page to be re-requested and re-rendered. You will have no control over this, though, and it’s entirely down to how the browser wants to handle it. I believe most modern browsers will re-request the page, though.

    Another approach to preventing re-rendering of an ASP.NET page is to control this yourself on the server-side using the

    @OutputCache

    directive within your ASP.NET web page, like this:

    <%@ OutputCache Duration="600" VaryByParam="None" %>
    

    At it’s most basic, the @OutputCache control will cache your rendered ASP.NET page for a specified number of seconds (600 in the example above) so that subsequent requests for that page will result in the ASP.NET runtime serving up the already rendered version of the page to the user, rather than re-processing and re-rendering the entire page. Be aware that this is not user-specific, though.

    More info on page output caching (which is probably the closest you’ll get to what you’re after):

    Page Output Caching
    The OutputCache

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

Sidebar

Related Questions

I have an ASP.Net application which has an area called 'Customers'. This area has
I have a ASP.NET web application which has more than 100 pages. Each page
I have an ASP.NET MVC 3 application which has a post action called Create
I have one asp.net application, which has some problems while i am entering the
I have a asp.net application which is working from last 2-3 years, it has
I have an ASP.NET MVC 2 application, which has an Application_Error event handler in
I have a ASP.NET MVC application which has a view populated with a model
I have a basic ASP.Net MVC 3 application which has a number of controllers
Can anyone help. I have an ASP.NET application which has a web.config file so
Here's the scenario I have an ASP.NET 4.0 application which has a LOT of

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.