The browser refreshes the page and sends two requests to the server.

Source: Internet
Author: User
1.1.1 symptom

Refresh the page in IE and Firefox, and the server receives two identical requests.

1.1.2 cause

After verification, it is found that the page contains the following code:

SRC is an empty string. the browser determines that SRC points to the current page. Because the IMG element obtains image data based on SRC, the browser displays the page after the first request, the second same request will be generated when it is parsed here.

In development, it is still common that SRC is temporarily empty. When the server receives the same request multiple times, you can check whether this is the reason.

1.1.3 Solution

Make sure that the SRC of IMG is not empty.

The browser refreshes the page and sends two requests to the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.