Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们在每个请求的 cookie 中设置了一个“最后一个请求”时间戳。是否有额外的无意中听到通过网络发送更多数据来更新这个,或者cookie是否必须在每个请求上通过网络发送?
它们仅在每次请求时从客户端发送,因此您将从服务器获得少量额外开销。
您可以通过查看 Chrome 的“网络”选项卡中的标头或带有 Firebug 的 Firefox(或 livehttpheaders)来测试这一点。
无论如何都必须发送 cookie。