Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / January 2007

Tip: Looking for answers? Try searching our database.

Output Caching Static Text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
djmc - 09 Jan 2007 04:00 GMT
Is there any reason to cache an aspx page that only has static text on it?  
It doesn't make a db connection, but is accessed frequently.  I use an aspx
page instead of an html page to inherit the theme and master page for the
website.

Thanks!
Manish Bafna - 10 Jan 2007 04:42 GMT
Hi,
One way to improve the performance of any Web application is to cache static
content in memory. Cached content is always returned faster than freshly
rendered content. However, the tradeoff is that cached content may become
stale. ASP.NET 1.x supports several kinds of caching including:

Page level—Each page may be cached as a whole piece or based on the
parameters used to access the page. The cached page expires after a fixed
time.
Page fragment—If the page was built with user controls (.ascx files), then
the user controls could be cached independently of the rest of the page
content.
Programmatic caching—The developer could also cache objects thanks to the
cache API. The cache API offers the distinct advantage of providing a means
to create different types of dependencies for when the cache should be
flushed.

Hope this answers your query.

References :msdn site.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.

> Is there any reason to cache an aspx page that only has static text on it?  
> It doesn't make a db connection, but is accessed frequently.  I use an aspx
> page instead of an html page to inherit the theme and master page for the
> website.
>
> Thanks!
djmc - 10 Jan 2007 05:46 GMT
Hi,

Thanks for the response, but that did not really answer the question I asked.

I have an aspx page that is not dynamic.  It is not pulling from a database,
and there is no logic being performed.  It simply displays static html that
almost never changes.  Would it be smart to enable output caching on this
page?

Thanks

> Hi,
> One way to improve the performance of any Web application is to cache static
[quoted text clipped - 27 lines]
> >
> > Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.