Keep Alive grade

I was trolling the public test results and came across this curious test:

The “Keep Alive Enabled” grade is A but it clearly opens a new connection for all first-party content. Curious if this is intentional or a bug.


Edit: This test shows similar behavior:

That test failed in some way, i’ve seen this a few times.


Looks like the logic is getting confused by:

Connection: keep-alive, close

I don’t see anything in the specs that expect both to be there but clearly my code is seeing the keep-alive first and trusting it while browsers are seeing the close and honoring that.

I created an issue to track it-