Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

we deliver all our static content (pictures, html, ....) with a proxy. if we request the direct URL in the browser, all the content is loaded very very fast.

but if the same URL is build in a website, the same content is sometimes loaded very slow (I speak about 10 seconds :-()

example:

http://static.domain.com/picture.jpg -> fast

http://www.domain.com/index.php -> the above picture is slow

what could be the reason for this behavior?

thank you very much.

cheers

share|improve this question
    
What are you doing inside that .php file? –  EEAA May 19 '11 at 14:33
    
nothing special. the whole site is loaded very fast but "some" pictures "sometimes" hang. –  christopher May 19 '11 at 14:35
    
@christopher That doesn't answer my question. Either post the whole file or the relevant portions. –  EEAA May 19 '11 at 14:36
    
<img src="static.domain.com/picture.jpg">; –  christopher May 19 '11 at 14:38
    
of course there are include more pictures - not only this one. –  christopher May 19 '11 at 14:39

1 Answer 1

Are you sure the picture itself is loading slowly, or just all the requests that are being handled from the browser (without an actual url, I can't verify).

Browsers will only make a set number of concurrent requests to each domain and will wait until others finish before starting more (I think the number is 2)

If you have Firefox, you can get the Firebug addon to monitor requests, and chrome/safari has this info built into their developer tools.

I hate IE so won't mention them!

share|improve this answer
    
you are right. I did this test already with firebug - and you can see, that everything is loading fine - but the picture hangs. if I copy out the url of the picture then it is loaded very fast ... –  christopher May 19 '11 at 16:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.