Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2010, 12:46 PM
Authorized User
 
Join Date: Jun 2008
Posts: 75
Thanks: 15
Thanked 0 Times in 0 Posts
Default cached copy of Page

On page 205 in the table under Page Request. It reads as follows... A request to an APSX page starts the life cycle of that page. When the web server is able and allowed to return a cached copy of that page, then the entire life cycle is not executed. In all other situations, the page enters the start phase.

Could someone please elaborate on the sentence where it says ---When the web server is able and allowed to return a cached copy of that page, then the entire life cycle is not executed.

What is a cached copy? Why is the entire page life cycle not executed in this situation? When would I want to use a cached copy? And when would I not want to use one?

Thanks for any help in understanding this in a little more depth.
 
Old April 12th, 2010, 03:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

A cached page is a copy of a final page that is stored for quick retrieval later.

Caching is mostly useful when a) it's expensive to build the page (look up stuff from a database for example) and b) the page contents are relatively static (since the page is cached for the entire server, it's difficult to store user specific data).

The first time a cachable page is requested, its output is stored and returned on subsequent requests; hence the lack of the life cycle. You can store specific versions of a page based on parameters. For example, Product.aspx?Id=23 that shows product 23 can have its own copy, just as Product.aspx?Id=345

For more information:

http://msdn.microsoft.com/en-us/library/hdxfb6cy.aspx
http://www.google.com/#hl=en&source=...10401dfb0a78c2

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering Data after its been cached Durkee VB.NET 2002/2003 Basics 0 November 13th, 2007 05:57 PM
POST response cached keenlearner BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 March 27th, 2007 03:12 PM
Execute COPY from ASP page on server rtr1900 ASP.NET 1.0 and 1.1 Basics 0 June 5th, 2006 08:08 AM
stop my ASP page being cached crmpicco Classic ASP Basics 1 June 7th, 2005 06:07 PM
Re-Insertion of Cached Items flyin General .NET 0 October 1st, 2004 02:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.