What is the maximum size of a cookie, and how many can be stored in a browser for each web site?

后端 未结 9 1244
猫巷女王i
猫巷女王i 2020-11-27 16:36

I am learning about cookies, and I wonder about browser support when writing web applications that rely on cookies to store state.

  • For each domain/web site,

9条回答
  •  忘掉有多难
    2020-11-27 17:19

    CDN Comes to Rescue.

    You can offload your static content to a CDN or a file storage service like Amazon S3, keeping the static file requests cookie-free should be easy as long as you haven’t set up a CNAME record on a subdomain that receives cookies from your top-level domain.

    This Blog Post is a good read for on Serving Static Content from a Cookieless Domain and how can we adopt this best practice to boost our performance in the client side.

提交回复
热议问题