Today, I encountered a problem. When I write a cookie, I found that writing does not take effect. Later I found that I wrote cookies locally, but I didn't write them on the server, so I couldn't write them in any way.
Another problem is that when writing a cookie, the value of path must be noted.
Another interesting thing is that the image source address can be converted to base64 encoding, which can reduce the number of HTTP requests.
Refer:
Normally, the IMG tag is used in HTML to display images,
For example:
In fact, you can also use the base64 encoding format of the image to achieve the same effect,
For example,
Aaafcayaaacnbyblaaaheleqvqi12p4 // 8/w38giaxdibke0dhxgljnbaao
9txl0y4ohwaaaabjru5erkjggg = ">
Of course, you can also put some style images in the CSS file,
I personally think this is mainly to reduce the number of HTTP connections. It is suitable for background images on the page and is directly written in the CSS style. Moreover, the image itself is not very large and will not multiply the file CSS file size after base64 encoding.