Lessons

Uploading duplicate files

The page may load duplicates if the same file has different links. Compare https://example.com/image.png?v=1001 and https://example.com/image.png?v=2001. The file is the same, but due to different parameters in the URL, the browser will download the image.png file 2 times.

Make the link the same for different sections of the code. So, you will speed up page loading.

Duplicates when using hash

The following 2 images link to a single physical file:

<img src="./images/sprite.svg#element-1" />
<img src="./images/sprite.svg#element-2" />

Browsers, when uploading images, perceive the hash as a separate link, so they will upload the image./images/sprite.svg 2 times. To prevent this from happening, do not use a hash in the file path.

Tariff plans for working with the service

We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree