Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52975 invoked by uid 500); 26 Mar 2002 02:28:35 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 52960 invoked from network); 26 Mar 2002 02:28:35 -0000 Received: from access.grickle.org (HELO Cerberus.grickle.org) (206.228.153.149) by daedalus.apache.org with SMTP; 26 Mar 2002 02:28:35 -0000 Received: from grickle.org (httpd@localhost [127.0.0.1]) by Cerberus.grickle.org (8.12.2/8.11.4) with SMTP id g2Q2SgLK001020 for ; Mon, 25 Mar 2002 20:28:43 -0600 Received: from zeus ([204.182.60.2]) (SquirrelMail authenticated user james) by webmail.grickle.org with HTTP; Mon, 25 Mar 2002 20:28:43 -0600 (CST) Message-ID: <33110.204.182.60.2.1017109723.squirrel@webmail.grickle.org> Date: Mon, 25 Mar 2002 20:28:43 -0600 (CST) Subject: Re: relative vs absolute URL's / CPU processing overhead From: "James Harr" To: In-Reply-To: References: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Sivakatirswami, It shouldn't make too much of an impact, however I do believe the .. is handled by the web browser (most web browsers). later, jh Sivakatirswami said: > I am trying to set a development policy that will impact coding of > future web pages, both those done by hand and those done under > automation by software that we write to build pages from templates, > file and from within data bases. I suspect this has been asked and > answered but no amount of searching on the web got me anywhere. > > The issue is whether use of absolute URLs to reference images and other > *.html documents in the same public_html directory increases CPU > overhead or not... in terms of time taken for Apache to serve images > for that page or serve/reference documents on the same site from links > on the page. I find two schools of thought, one says absolute URLs will > require addition overhead on the CPU in terms of DNS required to > resolved every absolute URL from "the top down," that is not required > for relative URLs. The other school of thought is telling me that no, > it doesn't natter, even the relative URL's require a DNS action before > the image can be sent out along with the .html document and portability > is the only issue not CPU time. I myself do not know which is true. > > Assume, for example, some 25 images on a page all quite small mostly > navigation buttons and few larger JPGs in the content itself... assume > a *.html page three directory levels deep... if we use > > vs > > > do 25 instances of the former slow down serving the page vs 25 > instances of the latter? > > Of course, the issue of portability, being able to view the site > locally under development on the LAN without opening connections to the > ISP host outside the LAN where the domain actually lives etc. obviously > puts relative URL's in the lead for preferred usage... but the overhead > required to "go to the trouble" to figure out what directory level a > document will be on when it is finally complete and posted to the site > and the ease of simply using an absolute URL which will work regardless > of the page's directory level... begs for use of absolute URL's, > especially by those who are doing coding by hand and get their > locations confused and would rather just use an absolute URL instead of > debugging their image references later if they have the levels wrong > where "../../image/some.gif" should really be > "../../../image/some.gif" > > And besides the CPU overhead question I would like any input from more > experienced web masters on this issue... if you have "strong feelings" > about this subject then I would like to know what they are what led you > to your conclusions. > Thanks! > > Hinduism Today > > Sivakatirswami > Editor's Assistant/Production Manager > katir@hindu.org > www.HinduismToday.com, www.HimalayanAcademy.com, > www.Gurudeva.org, www.hindu.org > > Read The Master Course Lesson of the Day at > http://www.gurudeva.org/lesson.shtml > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. See for more > info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org