16. Reduce Cookie Size

HTTP cookies are used for a variety of reasons such as authentication and personalization. Information about cookies is 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.

Guidelines:

  • Eliminate unnecessary cookies

  • Keep cookie sizes as low as possible to minimize the impact on the user response time

  • We recommend that the average size of cookies served off any domain be less than 400 bytes

  • Set an Expires date appropriately. An earlier Expiry date or none removes the cookie sooner, improving the user response time