为什么Chrome审核建议我最小化Cookie大小? [英] Why does Chrome audit recommend me to minimize cookie size?

查看:287
本文介绍了为什么Chrome审核建议我最小化Cookie大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何最大限度地减少我的请求的Cookie大小? Chrome似乎会警告我我的Cookie大小是41B,这是不是很多,但有一个原因,它警告我这个?

How can I minimize cookie size of my requests? Chrome seems to 'warn me' about my cookie size being 41B, which is not a lot at all, but is there a reason it warns me about it?

一个PHPSESSID cookie,我真的不知道如何最小化。任何想法?

It is a PHPSESSID cookie, which I do not really know how to minimize. Any ideas?

我的请求响应本身应该已经Gzip压缩,但是从我知道它是不可能压缩标头本身,或者是吗?

My request responses themselves should already be Gzipped, but from what I know it is not possible to compress headers themselves, or is there?

谢谢!

推荐答案

Chrome审核工具遇到的问题此警告不正确

The Chrome Audit tool issues this warning incorrectly. 41B is a small cookie and will easily fit in the MTU of 1500B.

例如,如果您针对Google.com执行审核,则会投诉他们的104B Cookie。 Chrome小组需要修正此错误警告,但您不必担心。

For example, if you run Audit against Google.com, it will complain about their 104B cookie. The Chrome team need to fix this erroneous warning, but you don't need to worry about it.

这篇关于为什么Chrome审核建议我最小化Cookie大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆