HighDots Forums  

20 requests for 1 document = 1 request?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss 20 requests for 1 document = 1 request? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike J.S.
 
Posts: n/a

Default 20 requests for 1 document = 1 request? - 09-10-2007 , 08:50 PM






If there are 20 requests for the same image in a webpage, are all 20
instances treated as a single request (load and rendering-wise)?



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: 20 requests for 1 document = 1 request? - 09-10-2007 , 11:22 PM






..oO(Mike J.S.)

Quote:
If there are 20 requests for the same image in a webpage, are all 20
instances treated as a single request (load and rendering-wise)?
Depends on the cacheability of the image. 20 references to an image in a
page always mean 20 requests. The only question is who will answer them
and if they will reach the server at all.

It's quite possible that the browser only sends a single request and
stores the image in its cache (if it's not there already) until it
expires. Then all remaining references in the page would not lead to
additional server requests, but would be served directly from the
browser cache.

Another possibility is that the image is cacheable, but the server
requires the browser to always check if the resource was changed on the
server. This would lead to 20 server requests, but only the first one
(if any) would actually fetch the image, all others would be answered
with the HTTP status code 304 ("Not Modified").

Micha


Reply With Quote
  #3  
Old   
Mister Mustard
 
Posts: n/a

Default Re: 20 requests for 1 document = 1 request? - 09-11-2007 , 08:55 AM



On Mon, 10 Sep 2007 21:50:59 -0400, "Mike J.S." <no (AT) spam (DOT) com> wrote:

Quote:
If there are 20 requests for the same image in a webpage, are all 20
instances treated as a single request (load and rendering-wise)?

I didn't want to go first on this one, as I am not sure, but Michael's
answer sounds right to me.

You might want to Google ETag.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.