When the img src value is empty, two requests are made. Some students may have encountered similar situations before. When there is a tag like <img src=''>, an extra request will be made to the page. Based on the analysis of an article, I guess that all tags that actively introduce external files will have this problem, such as embed, link, etc. Therefore, it was verified by experiment. The following are preliminary conclusions :
Note : 1. For the two requests of IE and Firefox, the pages they request are different. IE: The request is for the directory where the accessed file is located, such as the img tag, the second request is http://www.xxxx.cn/test/ FF, Safari, Chrome: The requested file is the one being accessed 2. For the embed tag, the above description is when type is not empty. When type is empty, FF requests 1, and IE responds differently depending on the type value. 3. If the above tags do not contain src="", no secondary request will occur. |
<<: This article will show you what Vite does to the browser's request
>>: Pure CSS3 to achieve mouse over button animation Part 2
Table of contents What are shallow cloning and de...
How to view linux files Command to view file cont...
Trident core: IE, MaxThon, TT, The World, 360, So...
1. Introduction to Data Integrity 1. Introduction...
<br />Years of professional art design educa...
Table of contents introduce Object attributes in ...
Absolute positioning method: (1) Set the parent e...
This article example shares the specific code for...
Edit docker-compose.yml and add the following con...
Operation effect: html <!-- This element is no...
1. Introduction Today a colleague asked me how to...
Problem Description MySQL is started successfully...
Angularjs loop object properties to achieve dynam...
The installation of MySQL 8.0.12 took two days an...
This article shares the use of js and jQuery tech...