SPDY increasing size of pages

Tom van der Woerdt info at tvdw.eu
Mon Aug 6 17:55:15 UTC 2012


Hi Steve,

I just did some tests: the logs reported 33KB on a .html file that's 805 
bytes. After refreshing it said 2.4KB, and after another refresh it 
claimed 1.1KB. For the record: gzip was disabled and with spdy disabled 
it reported 805 bytes like it should.

Then I looked at the response headers on the requests, which always 
mentioned 805 bytes on all responses, even with SPDY enabled.

Conclusion: there's no massive network overhead, the counter is simply 
broken.

Tom



Op 8/6/12 7:43 PM, steve willing schreef:
> Hello,
>
> After enabling SPDY, I noticed that every element that loads on my site is larger (in bytes) than without SPDY.
>
> This includes all elements, images, css, js and html.
>
> Some log snippets below.
>
> spdy disabled:
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:01:53:27 -0400] "GET / HTTP/1.1" 200 1836 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:01:53:27 -0400] "GET /style.css HTTP/1.1" 200 761 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:01:53:27 -0400] "GET /images/banner.jpg HTTP/1.1" 200 66445 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:01:53:27 -0400] "GET /images/background.png HTTP/1.1" 200 235 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:01:53:27 -0400] "GET /images/menu.gif HTTP/1.1" 200 262 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
>
> spdy disabled (cached):
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:14:31 -0400] "GET / HTTP/1.1" 200 1836 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:14:31 -0400] "GET /style.css HTTP/1.1" 304 0 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:14:31 -0400] "GET /images/banner.jpg HTTP/1.1" 304 0 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
>
> spdy enabled:
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:06:28 -0400] "GET / HTTP/1.1" 200 3142 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:06:28 -0400] "GET /style.css HTTP/1.1" 200 2699 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:06:29 -0400] "GET /images/background.png HTTP/1.1" 200 251 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:06:29 -0400] "GET /images/menu.gif HTTP/1.1" 200 278 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:06:29 -0400] "GET /images/banner.jpg HTTP/1.1" 200 67288 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
>
> spdy enabled (cached):
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:08:48 -0400] "GET / HTTP/1.1" 200 3742 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:08:48 -0400] "GET /style.css HTTP/1.1" 304 4295 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> TLSv1.1 ECDHE-RSA-RC4-SHA 10.0.0.1 - - [05/Aug/2012:02:08:48 -0400] "GET /images/banner.jpg HTTP/1.1" 304 68333 "https://127.0.0.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1"
> Notice how even when cached (304 not modified) it shows the bytes being even *larger* than the non-cached version.
> I should also note that I have tested this in the latest version of Chrome and Firefox, both have the same results.
> Thanks
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120806/31b8d047/attachment.html>


More information about the nginx-devel mailing list