@
@
@eashla2017-04-15 02:30:50
HTML
@eashla, 2017-04-15 02:30:50

Multiple requests on the html page of the same image - is this one request to the server?

good afternoon!
If you use several img src for the same image in the code, then the request to the server will be one or as many as the page requests?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
ozornick, 2017-04-15
_

So it doesn't matter which file. Anyway, the request will be new, but the browser is designed in such a way that it caches information and does not have to be downloaded.
UPD: I am now without a PC. But try to open the source code as DOM in the browser, i.e. with a visual editor. There is a query console. Select it and refresh the page. Should show everything that requests and returns

S
Stopy, 2017-04-15
@Stopy

The picture is loaded 1 time, any downloaded file is loaded into temporary files and taken from there in the current session, if the cache is enabled, then after refreshing the page it will be taken from temporary files. In general, the answer is 1 time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question