Why does Chrome audit recommend me to minimize cookie size?

那年仲夏 提交于 2019-12-05 12:17:23

问题


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?

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

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

Thanks! I'm just a little OCD about performance and audits that tell me I could do something better.


回答1:


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

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.



来源:https://stackoverflow.com/questions/10105602/why-does-chrome-audit-recommend-me-to-minimize-cookie-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!