Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 December 10th, 2003, 01:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Static Content Pages

Hello,

I have several static content pages for a web site. One of them (the home page) has several large images. Would the home page benefit at all by declaring:

<%@ OutputCache duration="20" varyByParam="none" %>

In performance? It's takes some time to load the images on the page, and I was wondering if this would help the time results.

Thanks,

Brian Mains
__________________
Brian
 
Old December 10th, 2003, 02:13 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://www.mydomain.com/mypage.aspx <- One request
http://www.mydomain.com/mybigimage.gif <- A different request

Output caching will cache the output of the ASPX, but I don't think will have any affect on the images. The browser is responsible for caching html and images. If the browser caches properly, you should see a difference between the first hit and subsequent hits. However, if the page you are trying to cache generates quickly you probably won't see much of a difference as the caching only affects the generated output (HTML).

When thinking about user control/page control caching in .net, you need to consider the time it takes to construct the control. If you had a really complicated set of queries that ran to create a dynamic control, but that data didn't change much, then you could use caching to speed up server reponse for that control. If your images are being requested from the server, then you are having caching issues from the browser end.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
Control IDs in content pages LMIILM BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 December 8th, 2007 06:30 AM
Master Page/Content Pages coleenh ASP.NET 2.0 Basics 1 September 26th, 2006 02:17 PM
"[WARNING] Some static content could not fit ..... grant6607 XSLT 1 June 7th, 2005 12:12 PM
HTM pages with dynamic content madhukp Classic ASP Basics 3 June 10th, 2004 03:57 AM





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