CF Pages site not on http/2

CF Pages site being served on http/1, can it be on http/2?

Kindly, may I ask how did you checked this? Using some online tool or developer console of your Web browser? - just being curious :slight_smile:

1 Like

Rex Swain’s HTTP Viewer
http://www.rexswain.com/httpview.html
Code last updated 21 March 2020

Request:

HEAD https://satpurusha.com HTTP/1.1 Host: satpurusha.com User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1 Referer: Rex Swain's HTTP Viewer Connection: Close

Response Header:

HTTP/1.1 200 OK Cache-Control: public, max-age=0, must-revalidate Connection: close Date: Sun, 06 Jun 2021 05:57:34 GMT Server: cloudflare Vary: Accept-Encoding Content-Type: text/html; charset=utf-8 CF-Cache-Status: DYNAMIC CF-RAY: 65af67671b4b77dc-LAX Cf-Request-Id: 0a817ef473000077dc018d9000000001 Expect-CT: max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct” NEL: {“report_to”:“cf-nel”,“max_age”:604800} Report-To: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v2?s=I%2BoECAhg6qY2cf6INuliVjp3q8kq9uqwSZm2GcmlIByMokQtFV8rP4g0nleusOhyQmXa78TAaUMhkGK0mlto6Uea5jefjqnhTqkYt9NjtZoz1ihJ7VMjPw4XYlw%3D"}],“group”:“cf-nel”,"max_age”:604800}

Done

Total elapsed time: 1 seconds

I checked again and see that Rex swain was requesting http1.1. On the keycdn test it shoes that h2 is available if requested…

Forget my question…

If the web browser supports it, it should be returned as h2 if available at the origin/Cloudflare, right?

The curl -vso /dev/null --http2 https://satpurusha.com/ got me returned:

ALPN, offering h2
ALPN, offering http/1.1
ALPN, server accepted to use h2
Using HTTP2, server supports multi-use
Connection state changed (HTTP/2 confirmed)
GET / HTTP/2
HTTP/2 200

The next one openssl s_client -alpn h2 -connect satpurusha.com:443 -status got me returned:

ALPN protocol: h2

In my Web browsers, both desktop and mobile, I got HTTP/2 (or h2) in Developer Console returned for the requests made to your domain.

There are known tools or services that do not use HTTP/2 yet, so maybe that would be to question?

Over IPv4:

HTTP/2 200
date: Mon, 07 Jun 2021 01:17:18 GMT
content-type: text/html; charset=utf-8
cache-control: public, max-age=0, must-revalidate
cf-cache-status: DYNAMIC
cf-request-id: 0a85a4b9530000d6c5d0a13000000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v2?s=Vl%2BpfAFzkcwyoSS06Wdv3MWkwnO3p7y8UmntI7db%2FxtRRg9EYyY7VSHHJWaJ4XbeencUHAZINm%2FIl0W%2BJYooD%2FdOpDzE8HqOxyXRsEjUdXbEclHNf4Fs3Cy8kpg%3D"}],"group":"cf-nel","max_age":604800}
nel: {"report_to":"cf-nel","max_age":604800}
vary: Accept-Encoding
server: cloudflare
cf-ray: 65b60a3bbe2bd6c5-FRA

Over IPv6:

HTTP/2 200
date: Mon, 07 Jun 2021 01:17:18 GMT
content-type: text/html; charset=utf-8
cache-control: public, max-age=0, must-revalidate
cf-cache-status: DYNAMIC
cf-request-id: 0a85a4ba6d00000eab56b2d000000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v2?s=H0Rz4m1uSArc657fBg%2BHzDHwI%2BQ45VL7nYxP8BKzQg8mIbyF3ONMIQHkg2WMZXm2fjuPunSI3Qe%2BJ1z%2F4%2FSbSl%2B0%2BDvMolOk9ubNlbpz46G%2BN%2B0CLqph3O0BC7I1WYa3JOWLJqrxyF8%3D"}],"group":"cf-nel","max_age":604800}
nel: {"report_to":"cf-nel","max_age":604800}
vary: Accept-Encoding
server: cloudflare
cf-ray: 65b60a3d7d8a0eab-FRA

Using curl -Iks --http2-prior-knowledge https://satpurusha.com:

HTTP/2 200
date: Mon, 07 Jun 2021 01:19:57 GMT

Using curl -Iks --http2 https://satpurusha.com:

HTTP/2 200
date: Mon, 07 Jun 2021 01:20:19 GMT

All good so far from my end.

2 Likes

Thank you, I appreciate your help.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.