Home >Web Front-end >HTML Tutorial >I would like to ask you a question about the http request for background images, please let me know. _html/css_WEB-ITnose
My question is as follows:
Method 1:
/*css part*/
.class1{background-image:url("1.jpg")}
.class2 {background-image:url("1.jpg")}
/*html part*/
The same URL is only requested once, and subsequent content is fetched from the cache
All once The browser has Cached
For example, some js frameworks will be downloaded once when they are loaded for the first time. When you use them on other pages, they will look for
in the cache. Of course, there is also recycling. The specific time is not clear. Check online. Check
Thank you both above for your replies.
It’s useless to say more, just leave a comment.
Sorry, I don’t know how to set the points. I can only set 10 points per person.