In the development of the Web site often use some personalized settings, need to use cookies to record information, but found that the cookie information is very large, each request to send to the server, feel unnecessary, because this information is not required to process the server, so it feels very wasteful resources, There's no need to ask for so much information every time you request a server.
Is there a way to set a cookie that is only used on the browser but not sent to the server?
Reply content:
In the development of the Web site often use some personalized settings, need to use cookies to record information, but found that the cookie information is very large, each request to send to the server, feel unnecessary, because this information is not required to process the server, so it feels very wasteful resources, There's no need to ask for so much information every time you request a server.
Is there a way to set a cookie that is only used on the browser but not sent to the server?
It's not going to work, so there's cookie-free to say.
Used only on the client, you can use Localstorage/usedata Bar
With local storage Bai, search their own JS local storage on the line, do not need to use cookies
What you say is called Localstorage and Sessionstorage.
Browser can disable cookies
H5 's local storage mechanism enables
There is no cookie in it.