D
D
Dmitry2016-06-08 09:48:16
JavaScript
Dmitry, 2016-06-08 09:48:16

Are images cached?

There is markup

<div id="slider">
      <div data-img="img/1.jpg"></div>
      <div data-img="img/2.jpg"></div>
      <div data-img="img/3.jpg"></div>
      <div data-img="img/4.jpg"></div>
</div>

Using js, I make the background of the block from the data-img attribute. Does the browser cache these images?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-06-08
@By_Engine

If the browser and server settings allow, then it caches. From the browser's point of view, a picture is a picture - no matter where exactly it was requested from.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question