HTTP cache
Etag MD5 expire time has a bug cache-control max-age=600
Expire is different from cache-control because the expire time can be set locally and the expiration time can be set artificially, whereas cache-control is set within a specified time
Difference between Etag and cache-control Etag has a request, while cache-control has no request
Get is used to get data. Post is used to submit data. A GET URL has a length limit, but a POST url does not. The get parameter value is placed in the URL, and the POST parameter value is placed in the message body. Get requires only one message, and POST requires more than two.
Cookie vs LocalStorage vs SessionStorage Cookie is a string sent by the server to the browser. Session is a session, indicating the session between the browser and the server during a period of time. Session is on the server,cokkie is on the browser. Session is generally implemented based on COKKIE, and the session ID is put in the cookie
The difference between cookie and LocalStorage cookie size is 4k, LocalStorage is limited to 5m cookie is used to store user information, The localStorage cookie sends information to the server, but the localstorage does not send information to the server
The difference between localStorage and sessionStorage Local does not expire. SessionStorage expires at the end of a session.