Google.com and clients1.google.com/generate_204

前端 未结 11 826
梦毁少年i
梦毁少年i 2020-12-07 16:40

I was looking into google.com\'s Net activity in firebug just because I was curious and noticed a request was returning \"204 No Content.\"

It turns out that a 204 N

11条回答
  •  被撕碎了的回忆
    2020-12-07 17:31

    In the event that Chrome detects SSL connection timeouts, certificate errors, or other network issues that might be caused by a captive portal (a hotel's WiFi network, for instance), Chrome will make a cookieless request to http://www.gstatic.com/generate_204 and check the response code. If that request is redirected, Chrome will open the redirect target in a new tab on the assumption that it's a login page. Requests to the captive portal detection page are not logged.

    Source: Google Chrome Privacy Whitepaper

提交回复
热议问题