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!