Test with and without HTTP/2
|
01-14-2016, 11:22 PM
Post: #1
|
|||
|
|||
Test with and without HTTP/2
Hi there,
I want to test a site capable of HTTP/2 with HTTP/2 and without (HTTP 1.1) to see the differences in performance, session handling and so on. I try to disable HTTP/2 via setting a firefox preference in test script: Code: firefoxPref network.http.spdy.enabled.http2 false Resulting waterfalls look strange somehow: cloudflare - first request isn't included in waterfall: http://www.webpagetest.org/result/160114...1/details/ google - no request in waterfall at all: http://www.webpagetest.org/result/160114_7A_M43/ twitter - same as with cloudflare, first request not in waterfall: http://www.webpagetest.org/result/160114...1/details/ Any ideas? Regards, Nils |
|||
01-14-2016, 11:40 PM
Post: #2
|
|||
|
|||
RE: Test with and without HTTP/2
My guess is that Firefox falls back to SPDY if HTTP/2 is disabled and I haven't implemented SPDY decode in the firefox agents yet. Is there a pref to disable SPDY as well? If so you'll want to set that (since that's what you want to test anyway).
|
|||
01-14-2016, 11:48 PM
Post: #3
|
|||
|
|||
RE: Test with and without HTTP/2
Great guess, that's it!
Code: firefoxPref network.http.spdy.enabled false http://www.webpagetest.org/result/160114...1/details/ And second firefox preference is possibly unnecessary. |
|||
03-26-2016, 05:11 AM
(This post was last modified: 04-02-2016 04:21 AM by jgarza.)
Post: #4
|
|||
|
|||
RE: Test with and without HTTP/2
Update: I did some testing and seems the only setting needed to disable h2 and spdy in Firefox is network.http.spdy.enabled
Code: // Disable SPDY/h2 Here is the WPT test where this has been tested: http://www.webpagetest.org/result/160401...78e43d26b/ |
|||
10-04-2016, 09:09 AM
Post: #5
|
|||
|
|||
RE: Test with and without HTTP/2
Pat,
I just did a test https://www.webpagetest.org/result/16100...05c6ade7f/ and seems h2 is not getting disabled in Firefox anymore. Do you know what could be the reason? |
|||
10-04-2016, 10:33 AM
Post: #6
|
|||
|
|||
RE: Test with and without HTTP/2
I see one more option called "network.http.spdy.enabled.v3-1". When I turned this off, I was able to force HTTP2 to be turned off on FF.
firefoxPref network.http.spdy.enabled false firefoxPref network.http.spdy.enabled.http2 false firefoxPref network.http.spdy.enabled.v3-1 false navigate https://http2.akamai.com WPT: https://www.webpagetest.org/result/16100...view_step1 Follow me on twitter: @rakshay |
|||
11-17-2016, 05:58 AM
Post: #7
|
|||
|
|||
RE: Test with and without HTTP/2
I just discovered that h2 will only be disabled when using Tabs (instead of spaces) to separate Firefox settings.
For example: 1) using spaces to separate settings renders the page over h2: https://www.webpagetest.org/result/16111...95c4b176e/ I am using: firefoxPref network.http.spdy.enabled false firefoxPref network.http.spdy.enabled.http2 false firefoxPref network.http.spdy.enabled.v3-1 false navigate https://http2.akamai.com/ 2) using tabs to separate settings renders the page over h1: https://www.webpagetest.org/result/16111...1deb2320d/ firefoxPref network.http.spdy.enabled false firefoxPref network.http.spdy.enabled.http2 false firefoxPref network.http.spdy.enabled.v3-1 false navigate https://http2.akamai.com/ When I try with Firefox itself (without WPT) h2 gets disabled by just setting "firefoxPref network.http.spdy.enabled.http2 false" within about:config Pat, do you know if there is something on the WPT code that may cause that? |
|||
11-22-2016, 12:59 AM
Post: #8
|
|||
|
|||
RE: Test with and without HTTP/2
The scrips are always supposed to be tab delimited. There is some server-side logic that tries to convert space-delimited scripts to tab but it may not be handling the firefoxPref command correctly.
|
|||
11-22-2016, 01:01 AM
Post: #9
|
|||
|
|||
RE: Test with and without HTTP/2
Yep, should be fixed now. The conversion logic didn't treat firefoxPref as a "3 parameter" script command which was messing it up.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)