Back to Developer Roadmap

Cookie Size

src/data/best-practices/frontend-performance/content/keep-cookie-count-below-20.md

4.0879 B
Original Source

Cookie Size

If you are using cookies, be sure each cookie doesn't exceed 4096 bytes and your domain name doesn't have more than 20 cookies.

Cookies are exchanged in the HTTP headers between web servers and browsers. It's important to keep the size of cookies as low as possible to minimize the impact on the user's response time.