See an example of HTML code seriously affecting Web system performance

xiaoxiao2021-03-05  23

Statistics come from , each accessing this tag will record a browse, including access paths and refrer, parameters. Repeated tests show that the counter is not wrong; and the breakpoint calculation of each page before and after each page is fully compliant, the only explanation is to repeat each time you click. So where is the error?

A little narrowing the range until the last paragraph? "", the artist is probably a small picture, I don't know how to become an empty picture. If = "" "is =" "" "" "" "" "is refreshed on this page. Then, here, it is automatically downloaded by HREF. Indeed, for the web server, each picture is a complete HTTP session.

In this way, the problem is explained, since this SRC is empty, it is refreshed each time, it forms a dead cycle self-procurement process, which has caused repeated refresh from the page. The problem is here, just keeping a SRC = "" "Ineficial" code, it is enough to add a number of times in invisible system burden. There is no dead cycle, which is about one of the reasons why IE and Firefox behave differently due to the protection of the visitor.

According to MIME, it will remind the browser to download what. JSP has directly outputted the head is Content = "text / html; charset = GB2312", the browser should refuse, it seems a bit of a problem in this regard. When the server is requested, it will depend on the browser is requested. If the browser does not say it is a picture, the answer directly applies for JSP response path, the system does not have a good identification method, in Apache In a filtering rule (IF (meme! = HTML && Request_URL Match HTML $ ... JSP $)), the cost seems to be a little bigger; and I have nothing Idear should start from there (who knows trouble notice A sound).

Still be relatively careful on the code.

转载请注明原文地址:https://www.9cbs.com/read-37842.html

New Post(0)