Current time: 12-13-2019, 11:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very long redirection time : tool or server ?
10-21-2013, 08:40 PM
Post: #1
Question Very long redirection time : tool or server ?
I've tested from various locations an URL that returns a 301 to a new URL. The server response is fast enough, however WPT keeps indicating me a very very long download time.
See the first request on this result :
http://www.webpagetest.org/result/131021...2/details/

I've taken the longest download time I've noticed so far (1500 ms), but other location also show more than 500 ms download time.

How can the download of a redirect be so long ?
Can it be an error of the tool itself ?
I mean : the browser correctly redirects immediately to the ending URL and is downloading the assets of the final page, why would it keep downloading something from the first query ?

Jean-pierre VINCENT
braincracking.org
Fork of WPT monitor private instance : https://github.com/jpvincent/WPT-server
Find all posts by this user
Quote this message in a reply
10-21-2013, 10:22 PM
Post: #2
RE: Very long redirection time : tool or server ?
The browser will not terminate TCP connections when it gets a redirect so even though it moves on for navigation it will still process the full response. If you look at a tcpdump you can see that the server is still generating at least part of an HTML body (probably as a side effect of the 301 being generated in the application layer): http://cloudshark.org/captures/9d55cb6bf...m%20eq%203
Visit this user's website Find all posts by this user
Quote this message in a reply
10-21-2013, 10:25 PM
Post: #3
RE: Very long redirection time : tool or server ?
btw, it looks like the server is using chunked encoding and the html body and close comes back at the same time as the 301 header but there is an additional chunk that comes 1.5 seconds later that is dragging out the overall response.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-21-2013, 10:29 PM
Post: #4
RE: Very long redirection time : tool or server ?
Ok, seen that, I was just not getting why Chrome was already downloading the next page whereas it was waiting for the first request to end.
It seems to be an optimization made in Chrome itself, as IE8 is really waiting for the first request to end before executing the 301 !

So yeah, it's definitely not a tool problem, just a chrome optimization that I havent heard of before + a real server side problem

Thanks

Jean-pierre VINCENT
braincracking.org
Fork of WPT monitor private instance : https://github.com/jpvincent/WPT-server
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)